查询升序 find().sort({"age":1})
查询降序 find().sort({"age":-1})
求平均值
aggregate ([{'$group' : {_id:'$class', 'avg_score': {'$avg' : '$score'} }} ])