pub fn radix_sort_by_key<T: Clone>( data: &mut Vec<T>, key_fn: impl Fn(&T) -> u32, )
Sort a VecTin ascending order of theu32key produced bykey_fn`.
Vec
in ascending order of the
key produced by
Uses LSD radix sort (4 passes of 8 bits). The sort is stable.