--000e0cd356c8ac38330472567a22 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Aug 30, 2009 at 1:30 AM, Paul <tester.paul / gmail.com> wrote: > Hi there, I have an array of arrays that I want to sort by multiple > elements. > > Sample data in the array looks like: [ [ id, date, num, name ], [ id, > date, num, name ], ... ] > > I need to sort by : (1) name, (2) date, and (3) id. > > I can sort by any one element in the array no problem using something > like : > > summary_data.sort! { |a,b| a[ 3 ] <