diskDB
diskDB copied to clipboard
Reason behind saving an array backward
I'm just curious what is the reason behind saving an array backward
var articles = [article1, article2, article3]
db.articles.save(articles);
articles = db.articles.find({})
the order of articles returned will be [article3, article2, article1]
I was expected to be the same order when I get them as the same when I saved them. Thank
Not the original author - but I believe the intent may have been to return the most recent saved items first. @arvindr21 maybe able to clarify if this is correct.
Relates to #20