mongo聚合

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

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

原文地址:https://www.cnblogs.com/lyt-666/p/11972220.html