Merc Studio Tech Blog
Saturday, September 29, 2012
mongodb distinct and sort
Its alike javascript.
To sort the result, simply issue sort in the end
db.collections.distinct("fieldname").sort();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment