hrstt
6/25/2011 - 1:45 PM

sort_by_multi_attributes.rb

some_array.sort_by {|elem|
  [elem[:attribute_a], elem[:attribute_b]]
end