Sorting according to a primary and secondary criterion

John Colvin john.loughran.colvin at gmail.com
Wed Jul 17 05:35:41 PDT 2013


On Wednesday, 17 July 2013 at 11:43:37 UTC, Joseph Rushton 
Wakeling wrote:
>
>     .sort!("arr1[a] < arr1[b] || (arr1[a] == arr1[b] && arr2[a] 
> < arr2[b]"));
>
> ... but I'm not sure that would be an optimal strategy.

Is std.algorithm.multisort what you'd be looking for?


More information about the Digitalmars-d-learn mailing list