Ruby ordene un objeto
objects.sort_by {|obj| obj.attribute}
# OR
objects.sort_by(&:attribute)
Lioruby
objects.sort_by {|obj| obj.attribute}
# OR
objects.sort_by(&:attribute)