Hi, I am having a New Requirement.
I want to sort a array of elements in which @posts = Post.all(:include=>[:messages],:conditions => ["status in (?) ", [1,2,3,4,5,6,8,9]],:order => "messages.created_at DESC") posts table has a column named status as u see above. i want to sort this array by status parameters.. status = [1,4,5,6,2,3,8,9,7] and messages.created_at DESC thanks in advance -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

