diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 3fc1bf5f9a605107308059e1598658343635eb75..5a558bde64f3e1edddf661bb2bea230f56e4f1d6 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -64,7 +64,11 @@ 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 }.sort { |x, y| x.committed_date <=> x.committed_date } + end.flatten.uniq { |c| c.id } + + @commits.sort! do |x, y| + y.committed_date <=> x.committed_date + end @messages = project.notes.last_week.limit(40).order("created_at DESC") end