reorder commands