I have an array of objects in Ruby on Rails. I want to sort the array by an attribute of the object. Is it possible?
Yes its possible
http://ariejan.net/2007/01/28/ruby-sort-an-array-of-objects-by-an-attribute/