Commit 3f9577f7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix sort

parent 8e9a115a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment