diff options
author | Greg Smethells <smethells@icloud.com> | 2015-11-30 23:47:44 +0300 |
---|---|---|
committer | Greg Smethells <smethells@icloud.com> | 2015-12-03 17:53:34 +0300 |
commit | dbbd2b863b402e460ac1dc90f852fcae617a2351 (patch) | |
tree | 64f4c67ede3405ee0b4a53bceeb8f6cf5ca8e126 /app/finders | |
parent | 76b2250c60c410121cccaea584ca5345fa30e69b (diff) |
sort milestones by due_date
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/milestones_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/milestones_finder.rb b/app/finders/milestones_finder.rb index b704e878903..630c73c2a94 100644 --- a/app/finders/milestones_finder.rb +++ b/app/finders/milestones_finder.rb @@ -1,7 +1,7 @@ class MilestonesFinder def execute(projects, params) milestones = Milestone.of_projects(projects) - milestones = milestones.order("due_date ASC") + milestones = milestones.reorder("due_date ASC") case params[:state] when 'closed' then milestones.closed |