From: "Jesús Gabriel y Galán" Date: 2008-08-19T21:37:20+09:00 Subject: Re: Array API On Tue, Aug 19, 2008 at 12:15 PM, Tushar Gandhi wrote: > Hi, > Is sort_by method will cause performance problem? or Is it faster > sort? The theoretical performance comparison between sort and sort_by is explained here: http://www.ruby-doc.org/core/classes/Enumerable.html#M003151 Nevertheless, when talking about performance it's better to benchmark yourself for your specific case. It basically all boils down to how expensive is to calculate the comparison of two keys in the array, versus the number of comparisons needed. Jesus.