Nathan Esquenazi wrote:
Couldn't you just do [12,11,10,9,8].reverse ?
I want to avoid writing .reverse all over my controllers though - i'd like the ordering to be automatic.
In your model...
def reversed_resolutions resolutions.reverse end
Then you can just reference that.