Sodino 本文的查询是指存储了5个手机数据后再查询。存储实现见文章:【Node.js】mongoose教程—存储。 GitHub源码链接:sodino#MongoDemo 排序文档链接 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Query #sort(arg) Sets the sort order Parameters: arg < Object, String> Returns: < Query> this If an object is passed, values allowed are asc, desc, ascending, descending, 1, and - 1. If a string is passed, it must be a space delimited list of path names. The sort order of each path is ascending unless the path name is prefixed with - which will be treated as descending.