Corrected sorting feature