mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Added default sorting milestones by name (#27084)
#26996 Added default sorting for milestones by name. Additional, name for sorting closestduedate and furthestduedate was broken, so I fixed it. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0bb4c1cde2
commit
e8d4b7a8b1
@ -70,8 +70,10 @@ func (opts FindMilestoneOptions) ToOrders() string {
|
||||
return "num_issues DESC"
|
||||
case "id":
|
||||
return "id ASC"
|
||||
case "name":
|
||||
return "name DESC"
|
||||
default:
|
||||
return "deadline_unix ASC, id ASC"
|
||||
return "deadline_unix ASC, name ASC"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user