Skip to content

Commit e6d54d5

Browse files
adelowolafriks
authored andcommittedSep 28, 2018
make sure milestone listing is consistent across board (#4987)
1 parent 31d5488 commit e6d54d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎models/issue_milestone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (milestones MilestoneList) getMilestoneIDs() []int64 {
181181
// GetMilestonesByRepoID returns all milestones of a repository.
182182
func GetMilestonesByRepoID(repoID int64) (MilestoneList, error) {
183183
miles := make([]*Milestone, 0, 10)
184-
return miles, x.Where("repo_id = ?", repoID).Find(&miles)
184+
return miles, x.Where("repo_id = ?", repoID).Asc("deadline_unix").Find(&miles)
185185
}
186186

187187
// GetMilestones returns a list of milestones of given repository and status.

0 commit comments

Comments
 (0)