From: Max Williams Date: 2008-08-12T17:19:37+09:00 Subject: Re: Sort array by two attributes? (like sql "order by A, B") Pit Capitain wrote: > objects.sort do |a, b| > (a.lastname <=> b.lastname).nonzero? || > (a.firstname <=> b.firstname) > end Wow, this is all great stuff. thanks folks. -- Posted via http://www.ruby-forum.com/.