Customize YAML dumping order
NowanIlfideme opened this issue · comments
Anatoly Makarevich commented
It would be nice to dump YAML keys in field order, rather than alphabetic order. Perhaps this could be done via the Config class.
sfowl commented
I stumbled upon this issue today after switching from pyyaml to ruamel.yaml. Would be a much appreciated feature!
Anatoly Makarevich commented
I actually implemented this a week ago, but didn't have time to fully validate it locally to release it. I'm unsure whether it's best to change the default order to dump it by keys. Probably yes, will just need to set a new minor version for a breaking change.
Anatoly Makarevich commented
Yep, now available in 0.7.1 (default off) or 0.8.0 (default on) 😉