From: "David A. Black" Date: 2009-08-30T20:25:38+09:00 Subject: Re: Sorting an array by multiple elements? On Sun, 30 Aug 2009, David A. Black wrote: > data.sort_by {|id, date, num, name| [id, date, num] } Whoops, I meant [name, date, id]. David -- David A. Black / Ruby Power and Light, LLC / http://www.rubypal.com Ruby/Rails training, mentoring, consulting, code-review Latest book: The Well-Grounded Rubyist (http://www.manning.com/black2) September Ruby training in NJ has been POSTPONED. Details to follow.