错误写法

mongo.db['records'].find_one({}).sort([('_id', -1)])

正确写法

mongo.db['records'].find_one({}, sort=[('_id', -1)])

参考