Skip to content

Commit

Permalink
Merge pull request #82 from brendannee/master
Browse files Browse the repository at this point in the history
Updated readme with sort example
  • Loading branch information
rauchg committed Jan 4, 2015
2 parents f7cf035 + 75a5528 commit d9692fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -14,6 +14,9 @@ users.insert({ name: 'Tobi', bigdata: {} });
users.find({ name: 'Loki' }, '-bigdata', function () {
// exclude bigdata field
});
users.find({}, {sort: {name: 1}}, function () {
// sorted by name field
});
users.remove({ name: 'Loki' });

db.close();
Expand Down

0 comments on commit d9692fd

Please sign in to comment.