I want to sort a array objects which depends upon relationships between
table 1 : comments
table 2 : comments_date
Once a comment is added, the date which it is created will be saved in
comments date table.. now i want to sort the
comments array with respect to date it is created..
the code looks like this..
@comments.sort_by do |a|
thanks in advance