87828 threads
1250 threads
1 email from 1 person
i have an authors table who has_many :books. In my authors view i can say @authors.each do |a| a.books.each do |b| is there a way to sort (a.books.each) in this view ? I tried a.books.sort.each but it didnt work. thanks adam