Debug sorting.