pub type CmpFnTyped<T> = fn(left: &T, right: &T) -> Ordering;
Function to compare two values and return their ordering