Merge pull request #2015 from elvanja/commits-group-and-sort-by-date-desc

fix: grouping commits by date desc doesn't sort the groups too
This commit is contained in:
Dmitriy Zaporozhets 2013-03-05 06:40:13 -08:00
commit d5d9f1c515

View file

@ -1,4 +1,4 @@
- @commits.group_by { |c| c.committed_date.to_date }.each do |day, commits|
- @commits.group_by { |c| c.committed_date.to_date }.sort.reverse.each do |day, commits|
%div.ui-box
%h5.title
%i.icon-calendar