re-order modes