Sort results consistenly in descending order


/ Published in: Rails
Save to your folder(s)

Sort child records in descending order


Copy this code and paste it in your HTML
  1. user.interest_users.sort_by! {|x| x.interest.name }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.