BigW Consortium Gitlab

Commit ec71edfe by Alejandro Rodríguez

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

parent 4596190a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment