Remove redundant sort