Saturday, September 7, 2013

Like sort by multiple items

array.sort_by do |item|
  [item.a, item.b]
end
 
 
Blogger Templates