How to get ordered dictionaries in pymongo?
问题 I am trying get ordered dictionaries in Pymongo. I have read it can be done with bson.son.Son. The Docs are Here However, I can't seem to make it work. There is not much on google about it. There are some discussions on configuring pymongo first to tell it to use SON objects but no examples. A friend suggested passing a param when you do a find. He couldn't remember. I'm able to create the SON objects. But when they get inserted into the DB and then come back out they are just plain dicts. I