]> git.openstreetmap.org Git - rails.git/commitdiff
Sort users by their ids
authorENT8R <info.ent8r@gmail.com>
Sat, 26 Aug 2023 08:14:40 +0000 (10:14 +0200)
committerENT8R <info.ent8r@gmail.com>
Sat, 26 Aug 2023 08:14:40 +0000 (10:14 +0200)
app/controllers/api/users_controller.rb

index a921b6db7b39b5923c0ede739447ea429d0f0969..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.where(:id => ids)
+      @users = User.visible.where(:id => ids).order(:id)
 
       # Render the result
       respond_to do |format|