diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-18 15:38:57 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2011-10-18 15:38:57 +0400 |
commit | 8e9a115a91ca39377fb697bf890a17d629b3903e (patch) | |
tree | 4304a9e633162ed5e4d30803adfe2a8678e73ea5 /app/controllers | |
parent | 9352a3e6eb924dfcab5698e45f1b61d3a3d4c6de (diff) |
commit time sort
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index c6dcafab311..3fc1bf5f9a6 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -64,7 +64,7 @@ class ProjectsController < ApplicationController @heads = @project.repo.heads @commits = @heads.map do |h| @project.repo.log(h.name, nil, :since => @date) - end.flatten.uniq { |c| c.id } + end.flatten.uniq { |c| c.id }.sort { |x, y| x.committed_date <=> x.committed_date } @messages = project.notes.last_week.limit(40).order("created_at DESC") end |