sort user friend list in alphabetical order

This commit is contained in:
Nuwan 2023-04-06 12:06:25 +05:30
parent 8d816d69ed
commit b8d8ca73fa
1 changed files with 1 additions and 1 deletions

View File

@ -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