Commit fc177a30f7beeeecf0e97863b8e2293b75928304
1 parent
f8e17667
Exists in
master
and in
4 other branches
commit time sort
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/projects_controller.rb
@@ -64,7 +64,7 @@ class ProjectsController < ApplicationController | @@ -64,7 +64,7 @@ class ProjectsController < ApplicationController | ||
64 | @heads = @project.repo.heads | 64 | @heads = @project.repo.heads |
65 | @commits = @heads.map do |h| | 65 | @commits = @heads.map do |h| |
66 | @project.repo.log(h.name, nil, :since => @date) | 66 | @project.repo.log(h.name, nil, :since => @date) |
67 | - end.flatten.uniq { |c| c.id } | 67 | + end.flatten.uniq { |c| c.id }.sort { |x, y| x.committed_date <=> x.committed_date } |
68 | 68 | ||
69 | @messages = project.notes.last_week.limit(40).order("created_at DESC") | 69 | @messages = project.notes.last_week.limit(40).order("created_at DESC") |
70 | end | 70 | end |