Corrected sorting methods