Posted By

davidb on 10/02/14


Tagged

descending orderby nestedattributes


Versions (?)

Sort results consistenly in descending order


 / Published in: Rails
 

Sort child records in descending order

  1. user.interest_users.sort_by! {|x| x.interest.name }

Report this snippet  

You need to login to post a comment.