X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6d74aa2873a6fd79ba695292de3b26f354ff5bf7..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