# sort the changesets
changesets = if params[:order] == "oldest"
- changesets.order(:closed_at => :asc)
+ changesets.order(:created_at => :asc)
else
- changesets.order(:closed_at => :desc)
+ changesets.order(:created_at => :desc)
end
# limit the result