From: Anton Khorev Date: Tue, 15 Aug 2023 15:33:51 +0000 (+0300) Subject: Sort changesets by creation time X-Git-Tag: live~1131^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b350c78bc8740701a57d8639da5ab012a51f70c7?ds=sidebyside;hp=-c Sort changesets by creation time --- b350c78bc8740701a57d8639da5ab012a51f70c7 diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index 0a49a95f4..8a1b9f55b 100644 --- a/app/controllers/api/changesets_controller.rb +++ b/app/controllers/api/changesets_controller.rb @@ -172,9 +172,9 @@ module Api # 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