pub fn is_sorted<T: Ord, I: Iterator<Item = T>>(iterator: I) -> bool
Checks if an iterator yields ordered values.