Struct Subspace :: sus :: cmp :: Reverse
A helper struct for reverse ordering.
This struct is a helper to be used with functions like Vec::sort_by_key
and can be used to reverse order a
part of a key.
Examples
using sus::cmp::Reverse;
auto v = sus::Vec<i32>(1, 2, 3, 4, 5, 6);
v.sort_by_key([](i32 num) { return sus::Tuple(num > 3, Reverse(num)); });
sus_check(v == sus::Vec<i32>(3, 2, 1, 6, 5, 4));