db.数据库名字.aggregate([{"$sort": {"_id": 1}}]) 意思是 在这个数据库中按_id字段升序排序查找 来源:https://www.cnblogs.com/lyt-666/p/11972220.html 标签 mongo