Added isSorted(source) in Check