Failed to sort range

Ali Çehreli acehreli at yahoo.com
Tue May 28 13:43:32 PDT 2013


On 05/28/2013 12:47 PM, Anthony Goins wrote:

 > sort!("a<b", SwapStrategy.stable)(arr);
 >
 > This worked for me with the code at your link.

I've noticed that too. The reason that works is because in that case it 
uses Tim Sort. Apparently, the Tim Sort algorithm does not expose the 
bugs that were in the code.

Ali



More information about the Digitalmars-d-learn mailing list