From be96aa7cb42a2d43f84717a023f57f52b38cf6b7 Mon Sep 17 00:00:00 2001 From: ENT8R Date: Sat, 26 Aug 2023 10:14:40 +0200 Subject: [PATCH] Sort users by their ids --- app/controllers/api/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index a921b6db7..888753fe9 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -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| -- 2.39.5