Use logger is method isSorted