Sort users by their ids
This commit is contained in:
parent
bc71737f05
commit
be96aa7cb4
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?
|
raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty?
|
||||||
|
|
||||||
@users = User.visible.where(:id => ids)
|
@users = User.visible.where(:id => ids).order(:id)
|
||||||
|
|
||||||
# Render the result
|
# Render the result
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue