Skip to content

Commit

Permalink
make sure milestone listing is consistent across board (#4987)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo authored and lafriks committed Sep 28, 2018
1 parent 31d5488 commit e6d54d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issue_milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (milestones MilestoneList) getMilestoneIDs() []int64 {
// GetMilestonesByRepoID returns all milestones of a repository.
func GetMilestonesByRepoID(repoID int64) (MilestoneList, error) {
miles := make([]*Milestone, 0, 10)
return miles, x.Where("repo_id = ?", repoID).Find(&miles)
return miles, x.Where("repo_id = ?", repoID).Asc("deadline_unix").Find(&miles)
}

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

0 comments on commit e6d54d5

Please sign in to comment.