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