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