Skip to content

Commit

Permalink
Merge pull request #100 from jojobyte/master
Browse files Browse the repository at this point in the history
Adding sort option for chaining.
  • Loading branch information
officert committed Feb 7, 2016
2 parents d4e4813 + 9896799 commit 4d7800d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/utils/mongotronCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class MongotronCursor {
return this;
}

sort(sort) {
this._cursor.sort(sort);
return this;
}

stream() {
this._stream = true;
this._cursor.stream();
Expand Down

0 comments on commit 4d7800d

Please sign in to comment.