]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/users_controller.rb
Merge remote-tracking branch 'upstream/pull/4203'
[rails.git] / app / controllers / api / users_controller.rb
index 9da9d32266fd9860f0577626ffdd4c73d1ecf66f..888753fe9f2a92d3230c83382c2c375654f40b85 100644 (file)
@@ -19,7 +19,7 @@ module Api
 
       raise OSM::APIBadUserInput, "No users were given to search for" if ids.empty?
 
-      @users = User.visible.find(ids)
+      @users = User.visible.where(:id => ids).order(:id)
 
       # Render the result
       respond_to do |format|