Sort array returned by ActiveRecord by date (or any other column)

Viewed 78766

How can I sort an array returned by an ActiveRecord query by a created_at date column?

This occurs once the query has been executed.

Please don't tell me to do it in the query because I need this to happen in the view.

5 Answers
Related