pub fn crt_qsort_by<T>(a: &mut [T], cmp: impl Fn(&T, &T) -> i32)
The same with a three-way comparator.