For Mongoose 3.8.x, sorting can be done with the help of the following syntax: model.find({ ... }).sort({ field : x}).exec(function(err, ...
確定! 回上一頁