Correct sorting order