Restore ordering of results from the users#index API call
This commit is contained in:
parent
7297bdb72c
commit
c7a31ebc5d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module Api
|
|||
|
||||
raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty?
|
||||
|
||||
@users = User.visible.where(:id => ids).order(:id)
|
||||
@users = User.visible.where(:id => ids).in_order_of(:id, ids)
|
||||
|
||||
# Render the result
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue