Randomness in built-in .sort

Walter Bright newshound1 at digitalmars.com
Tue Jan 6 09:35:43 PST 2009


Bill Baxter wrote:
> It seems to me that the built-in .sort uses a randomized algorithm
> that leads to results that differ from run-to-run when there are
> elements with identical keys.

No, it doesn't use random sorts. The source code is included, so this 
should be easy to verify.



More information about the Digitalmars-d mailing list