Sorting Milestones on the auto complete list by due date and title
This commit is contained in:
parent
4596190a2d
commit
ec71edfedd
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ module Projects
|
|||
end
|
||||
|
||||
def milestones
|
||||
@project.milestones.active.select([:iid, :title])
|
||||
@project.milestones.active.reorder(due_date: :asc, title: :asc).select([:iid, :title])
|
||||
end
|
||||
|
||||
def merge_requests
|
||||
|
|
Loading…
Reference in a new issue