fn partial_insertion_sort<T, F>(v: &mut [T], is_less: &F) -> boolwhere
    F: Fn(&T, &T) -> bool,
Expand description

Partially sorts a slice by shifting several out-of-order elements around.

Returns true if the slice is sorted at the end. This function is O(n) worst-case.