1 Answer
- Newest
- Most votes
- Most comments
1
Hello,
It's one of the function difference with MongoDB.
Amazon DocumentDB does not guarantee implicit result sort ordering of result sets. To ensure the ordering of a result set, explicitly specify a sort order using sort().
Relevant content
- asked a year ago
- asked 4 years ago
- AWS OFFICIALUpdated 2 months ago

So basically, since MongoDB does not guarantee implicit result sort ordering, the sort ordering in DocumentDB won't be the same as in MongoDB. Right?
yes, but you could explicitly specify a sort order using sort().
yea, unfortunately i need exactly the implicit sort order like in Mongo