Correct the arrangement of Sort