pub fn try_is_sorted_by<T, I, F>(iter: I, compare: F) -> OrderResult<bool>where F: FnMut(&T, &T) -> Option<bool>, I: Iterator<Item = T>,
Function to check whether iter is sorted.