Sorting debugged.