diff --git a/problems/my_first_query/solution.js b/problems/my_first_query/solution.js index 708b9d3..824ed6d 100644 --- a/problems/my_first_query/solution.js +++ b/problems/my_first_query/solution.js @@ -9,7 +9,7 @@ MongoClient.connect('mongodb://127.0.0.1:27017/learnmymongodb', function(err, db var collection = db .collection('test') .find({}) - .sort({'value': '1'}) + .sort({'value': 1}) .toArray(function(err, object) { if (err) console.warn(err.message); console.dir(object);