Does MongoDB update an index when array elements are only reordered?

We are sure that the index will be the same after sorting the array, but the key question is whether Mongo can anticipate this and therefore save the reindexing process, or whether it will carry out the reindexing of the index even though the result will be the same. Is there any place in the Mongo documentation that supports your claim?

1 Like