remove redundant sort