sortOn: sorts range of aggregates by member name(s)

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 5 07:47:21 PST 2014


Nordlöw:

> Ok, but this doesn't support multi-sorting, right?

If performance is not a top priority, you can use a tuple:

r.schwartzSort!(x => tuple(x.a, x.b, x.c));

Bye,
bearophile


More information about the Digitalmars-d mailing list