[comparator] debug the sorting methods