Remove unnecessary sort.