Skip to content

Commit

Permalink
Change default ordering for DOIs in REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Nov 8, 2024
1 parent ee650bf commit 86dc385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/datacite_dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def index
when "relevance"
{ "_score": { "order": "desc" } }
else
{ updated: { order: "desc" } }
{ "_score": { "order": "desc" } }
end

page = page_from_params(params)
Expand Down

0 comments on commit 86dc385

Please sign in to comment.