Remove redundant sort case