Correction in sorting order