gmr / flatdict

Python module for interacting with nested dicts as a single level dict with delimited keys.
https://flatdict.readthedocs.io
BSD 3-Clause "New" or "Revised" License
112 stars 32 forks source link

FlatDicts don't keep order #36

Closed abmyii closed 4 years ago

abmyii commented 4 years ago

When printing a FlatDict or calling .keys() the keys are sorted. Is there any way for the keys to be kept in original ordered? The sorted on line 294 appears to be the culprit: https://github.com/gmr/flatdict/blob/8b056a11526ef7fd13061137194ea9ed2fe09805/flatdict.py#L294