Sorting with unaryFun predicate

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 6 07:36:42 PST 2017


Why isn't there an overload for `std.algorithm.sorting.sort` that 
takes a `unaryFun` lambda?

Something like

     x[].sort!"a.m";

sorting elements in `x` according to the value of element member 
`m` compared to the longer

     x[].sort!"a.m < b.m";


More information about the Digitalmars-d-learn mailing list