Sorting algorithm
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Oct 8 06:15:43 PDT 2011
On 10/07/11 23:00, Xinok wrote:
> Thanks, I'll look into it when I have a little more time.
Looking forward to it.
> If my algorithm were to be implemented in Phobos, the template arguments
> for std.algorithm.sort would need to be modified. For my algorithm to be
> stable, it requires defining two conditions, both a 'less' and 'greater'.
Wouldn't swapping the argument to less work?
Andrei
More information about the Digitalmars-d
mailing list