Sorting according to a primary and secondary criterion
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Wed Jul 17 05:48:37 PDT 2013
On 07/17/2013 02:35 PM, John Colvin wrote:
> Is std.algorithm.multisort what you'd be looking for?
Good thought. Thanks to pointing me here I also noticed the following example
in the schwartzSort docs which might be relevant:
sort!((a, b) => hashFun(a) < hashFun(b))(array);
I'm going to try out multisort and try out this second way of writing the condition.
More information about the Digitalmars-d-learn
mailing list