implemented sorter.is_sorted()