From: James Coglan Date: 2008-08-12T00:53:02+09:00 Subject: Re: Sort array by two attributes? (like sql "order by A, B") ------=_Part_44688_26317394.1218470123267 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > Sort_by is much faster than sort with a block. This is often true as sort_by only calls methods on each object once, but it is not universally true -- see http://ruby-doc.org/core/classes/Enumerable.html#M003151 for more information, and run some benchmarks for your use case if it's a big issue. ------=_Part_44688_26317394.1218470123267--