From b8d8ca73faf6711a8593f80fa277ff571a4e62a0 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Thu, 6 Apr 2023 12:06:25 +0530 Subject: [PATCH] sort user friend list in alphabetical order --- web/app/views/api_users/friend_index.rabl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/views/api_users/friend_index.rabl b/web/app/views/api_users/friend_index.rabl index 5c227c971..ed7346dab 100644 --- a/web/app/views/api_users/friend_index.rabl +++ b/web/app/views/api_users/friend_index.rabl @@ -1,3 +1,3 @@ -object @user.friends +object @user.friends.order(:first_name, :last_name) attributes :id, :first_name, :last_name, :name, :location, :city, :state, :country, :musician, :email, :online, :photo_url \ No newline at end of file