Now a tricky thing. To prevent a race condition, limit this query to match only if state of the collection is the way you expect it to be. Otherwise in meantime somebody could add something to the collection and you would then reset it back to the previous state. So what you have to do here is to make sure publications are exactly the same as those in `oldOrderIds`. And if they are, you apply new ordering.