Remove unnecessary sort