diff options
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index b2f5def4048..aa6071e6099 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -316,7 +316,7 @@ module API def order_options_with_tie_breaker order_options = { params[:order_by] => params[:sort] } - order_options['id'] ||= 'desc' + order_options['id'] ||= params[:sort] || 'asc' order_options end |