When pulling the Version details through for the gorm.io/gorm package, it appears that the Version slice is ordered up until the last entry. Ideal solution would be to implement a sorting solution / checker for the Versions struct.