Created
December 20, 2012 21:44
-
-
Save anonymous/4348837 to your computer and use it in GitHub Desktop.
natural sort is missing docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.interactions.find({kind: {$in: [1]}}).sort({$natural: -1}).hasNext() | |
false | |
> db.interactions.find({kind: {$in: [1]}}).sort({$natural: 1}).hasNext() | |
true | |
> db.interactions.find({kind: {$in: [1]}}).sort({$natural: -1}).count() | |
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment