remove unnecessary sort