mongodb排序

使用sort即可,如下:

db.adu.find().sort({"Age":-1})

其中,Age为排序字段,-1表示降序,1表示升序

posted @ 2021-07-13 23:25  RookieCoderAdu  阅读(69)  评论(0)    收藏  举报