summaryrefslogtreecommitdiff
path: root/jstests/core/sorti.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/sorti.js')
-rw-r--r--jstests/core/sorti.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/sorti.js b/jstests/core/sorti.js
index e30739b4867..b6518818683 100644
--- a/jstests/core/sorti.js
+++ b/jstests/core/sorti.js
@@ -20,6 +20,6 @@ function checkBOrder(query) {
checkBOrder(t.find().sort({a: 1}));
checkBOrder(t.find({}, {_id: 0, b: 1}).sort({a: 1}));
-t.createIndex({b: 1});
+t.ensureIndex({b: 1});
checkBOrder(t.find({}, {_id: 0, b: 1}).sort({a: 1}));
checkBOrder(t.find({}, {_id: 0, b: 1}).sort({a: 1}).hint({b: 1}));