Some cleaning & IsSorted