How to sort the array of Objects with an attribute in Ruby?

Top