Start a new topic

Is there a default sort order to collections fetched without an explicit sort query?

When I retrieve entities from a collection and do not include a sort query, in what order are the entities returned?
1 Comment

Since we use MongoDB for our data store, entities are returned in "natural order" which tends to be-- but is not guaranteed to be-- insertion order. For more details, please see http://docs.mongodb.org/manual/reference/glossary/#term-natural-order
Login or Signup to post a comment