Ruby Sort Object
objects.sort_by {|obj| obj.attribute}
# OR
objects.sort_by(&:attribute)
Lioruby
objects.sort_by {|obj| obj.attribute}
# OR
objects.sort_by(&:attribute)