Skip to content

Commit 5e62b0e

Browse files
committed
Merge pull request #130 from 10gen/INT-378-sort-_id
INT-378 use {_id: -1} sort order for sampling
2 parents a7e3218 + e397e72 commit 5e62b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/query-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var Query = require('mongodb-language-model').Query;
44
// var debug = require('debug')('scout:models:query-options');
55

66
var DEFAULT_SORT = {
7-
$natural: -1
7+
_id: -1
88
};
99
var DEFAULT_SIZE = 100;
1010
var DEFAULT_SKIP = 0;

0 commit comments

Comments
 (0)