Data objects in collection suddenly scrambled?

I am new at database handling, and made a simple json-file with an array of objects, every object consisting of an integer id and an array of strings of varying length. I then imported the file to my database in a new collection, and set up a Realm service with a webhook to retrieve the data. I noticed that MongoDB added an ObjectId to my files, but I thought nothing of it.

It have all worked fine up until today when I saw the objects was not in its original sequence, and it does not seem to be ordered after the ObjectId either.

What might have happened?

1 Like