Query Result Order Difference Between MongoDB and AWS DocumentDB

Hello,

I am migrating a database from MongoDB to AWS DocumentDB. I have observed that when I query a collection with the same elements in both MongoDB and DocumentDB, the order of the results is different.

Is this a known behavior of query results on DocumentDB?

Thank you.

The only way to get documents in a consistent order is sorting.