How does MongoDB sort records when no sort order is specified?
What is the default sort order when none is specified? The default internal sort order (or natural order) is an undefined implementation detail. Maintaining order is extra overhead for storage engines and MongoDB’s API does not mandate predictability outside of an explicit sort() or the special case of fixed-sized capped collections which have associated usage … Read more