From c7a31ebc5d130bfebc21d04937bdc05f1370272c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 26 Aug 2023 17:41:22 +0100 Subject: [PATCH] Restore ordering of results from the users#index API call --- 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 888753fe9..ab48a5189 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).order(:id) + @users = User.visible.where(:id => ids).in_order_of(:id, ids) # Render the result respond_to do |format| -- 2.39.5