Sorting Milestones on the auto complete list by due date and title

This commit is contained in:
Alejandro Rodríguez 2016-04-05 21:43:26 -03:00
parent 4596190a2d
commit ec71edfedd

View file

@ -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