re-order assignments