std::cmp::Reverse is very useful for lexicographic tuples. i.e.
radsort::sort_by_key(list, |x| (x.0, Reverse(x.1)));
Signed types can just be negated but unsigned types cannot and currently would need a cumbersome sort_by function or a risky conversion to a signed type.
std::cmp::Reverseis very useful for lexicographic tuples. i.e.Signed types can just be negated but unsigned types cannot and currently would need a cumbersome
sort_byfunction or a risky conversion to a signed type.