Reorder commands.