Function common::sort_with_hash_key
source · pub fn sort_with_hash_key<'a, T: Encode, V>(
hash_key: H512,
pair_a: (&'a T, &'a V),
pair_b: (&'a T, &'a V)
) -> ((&'a T, &'a V), (&'a T, &'a V))
Expand description
Sorting of keys and values by key with hash_key, useful for crypto sorting with commutative merkle operator.