[Issue 14340] AssertError in std.algorithm.sorting: unstable sort fails to sort an array with a custom predicate

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 24 08:13:26 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14340

--- Comment #8 from Xinok <xinok at live.com> ---
I can confirm this doesn't work in Python either:

https://ideone.com/oEkJPi

This might be justification to add a "sorted" function to Phobos so we can
exhibit similar behavior in D, but I don't think the solution is to "fix" the
sorting implementations that we already have.

--


More information about the Digitalmars-d-bugs mailing list