James Gray wrote:
> On Feb 6, 2007, at 9:51 AM, Drew Olson wrote:
> 
>>   mycsv.sort{|a,b| [a[2],a[0],a[1]] <=> [b[2],b[0],b[1]]}.each |row|
> 
> mycsv.sort_by { |row| row.values_at(2, 0, 1) }.each do |row|
> 
> ;)
> 
> James Edward Gray II

Ahh, neat, good to know.

-- 
Posted via http://www.ruby-forum.com/.