X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/702c071e191e0c79537f2e68f1084aa42bcb3c7a..b350c78bc8740701a57d8639da5ab012a51f70c7:/app/controllers/api/changesets_controller.rb?ds=sidebyside 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