db.数据库名字.aggregate([{"$sort": {"_id": 1}}])

意思是 在这个数据库中按_id字段升序排序查找

posted on 2019-12-02 18:01  代码笔记~  阅读(93)  评论(0编辑  收藏  举报