From: Max Williams Date: 2008-08-12T00:16:20+09:00 Subject: Sort array by two attributes? (like sql "order by A, B") IN sql we can pass two arguments to the 'order by' component, and it will order the results by A, and then B in the cases where A is the same. Can anyone think of a way to do the same thing with a ruby array? For example, if the array holds objects that have attributes/methods "lastname" & "firstname", to order the objects in a similar way to the sql query? thanks max -- Posted via http://www.ruby-forum.com/.