/ Published in: Rails

Sort child records in descending order
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
user.interest_users.sort_by! {|x| x.interest.name }
Comments
