Put commands.sort() as separate statement to mark sideeffects.