From: Erwin Date: 2008-06-01T02:34:39+09:00 Subject: how to sort a multi-elements array I know how to sort an array with 2 elements... that's the only example I could fin on Array#sort... but what if ... I need to sort an array like this one : anArray = [ [1, "joe", 4], [2, "arthur", 2], [5, "william", 3], [16, "bob", 1], [20, "ernesto", 17], [27, "julia", 1], [28, "barbara", 2] ] sorting on third-element (highest ranking) , and second-element (nickname) aSortedArray = [ [20, "ernesto", 17], [1, "joe", 4], 5, "william", 3], [2, "arthur", 2], [28, "barbara", 2], [16, "bob", 1] ] any doc link where this is explained ? thanks a lot for your tip