Mongodb Result Set Default Order Criteria

  mongodb, question

Collection has multiple documents. If the query results are not sorted, what is the default order for the result set of find ().

Basically, it is the order in the file (so it is often the order of insert).

To be on the safe side, you can think of it as out of order. if you need a specific order, you should still use sort.

Reference:

http://docs.mongodb.org/manual/reference/glossary/#term-natural-order