X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a1798fe6fb238fd2e4b878cd1736ca2b3101daa7..b350c78bc8740701a57d8639da5ab012a51f70c7:/app/controllers/api/changesets_controller.rb diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index 660140427..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("created_at ASC") + changesets.order(:created_at => :asc) else - changesets.order("created_at DESC") + changesets.order(:created_at => :desc) end # limit the result