Commit fc177a30f7beeeecf0e97863b8e2293b75928304

Authored by gitlabhq
1 parent f8e17667

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 64 @heads = @project.repo.heads
65 65 @commits = @heads.map do |h|
66 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 69 @messages = project.notes.last_week.limit(40).order("created_at DESC")
70 70 end
... ...