We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d5488 commit e6d54d5Copy full SHA for e6d54d5
models/issue_milestone.go
@@ -181,7 +181,7 @@ func (milestones MilestoneList) getMilestoneIDs() []int64 {
181
// GetMilestonesByRepoID returns all milestones of a repository.
182
func GetMilestonesByRepoID(repoID int64) (MilestoneList, error) {
183
miles := make([]*Milestone, 0, 10)
184
- return miles, x.Where("repo_id = ?", repoID).Find(&miles)
+ return miles, x.Where("repo_id = ?", repoID).Asc("deadline_unix").Find(&miles)
185
}
186
187
// GetMilestones returns a list of milestones of given repository and status.
0 commit comments