swaroopch / edn_format

EDN reader and writer implementation in Python, using PLY (lex, yacc)
https://www.swaroopch.com/Wrote-an-EDN-format-reader-and-writer-in-Python-11e0924249b181e3af8bdb9af1456373
Other
134 stars 31 forks source link

Add a sort_keys optional keyword argument to dumps #37

Closed bfontaine closed 7 years ago

bfontaine commented 7 years ago

This mirrors json.dumps from the Python standard library. If this is true, map keys are sorted in the output. This makes diffs simpler because the keys order in a map is not "random" anymore.

swaroopch commented 7 years ago

Thanks @bfontaine !