pymongo排序
import pymongo #以Account集合为例 db.Account.find().sort("UserName") db.Account.find().sort("UserName",pymongo.ASCENDING) db.Account.find().sort("UserName",pymongo.DESCENDING) db.Account.find().sort([("UserName",pymongo.ASCENDING),("Email",pymongo.DESCENDING)])