Fix the top 10 longest running projects list

Sorting by running time without a reverse takes the shortest running
projects.
This commit is contained in:
Matt Rogers 2017-06-13 17:12:15 -05:00
parent a8e2978054
commit 500892e1a4

View file

@ -22,7 +22,7 @@ module Stats
def find_top10_longest_running_projects
projects = user.projects.order('created_at ASC')
projects.sort_by{ |p| p.running_time }.take(10)
projects.sort_by{ |p| p.running_time }.reverse.take(10)
end
end