Update the entity ordering every time the entities in the model change.