Array#sort() implementations not interoperable

Bill Frantz frantz at pwpconsult.com
Thu Jun 13 12:41:57 PDT 2013


On 6/13/13 at 12:24 PM, oliver at apple.com (Oliver Hunt) wrote:

>I believe that the spec should mandate a stable sort, but i'm 
>not sure just how far we can go in trying to standardize exact 
>behavior of the sort without tying implementations to a single 
>implementation for all time.

One possibility which will allow implementations to include a 
more performant sort is to specify two sorts:

   sort - which is stable
   unstablestort - which is either an alias for sort or is a 
faster unstable sort.

Cheers - Bill

---------------------------------------------------------------------------
Bill Frantz        |"Web security is like medicine - trying to 
do good for
408-356-8506       |an evolved body of kludges" - Mark Miller
www.pwpconsult.com |



More information about the es-discuss mailing list