pub fn counting_sort_by_key<T: Clone>( data: &[(u32, T)], max_key: u32, ) -> Vec<(u32, T)>
Counting sort that also carries satellite data (key-value pairs).
Sorts by u32 key, stable.
u32