PEP 468 – Preserving the order of **kwargs in a function
https://docs.python.org/3/whatsnew/3.6.html#pep-468-preserving-keyword-argument-order
https://peps.python.org/pep-0468/
This was implemented by having dict preserve order in CPython, and is a feature as of Python 3.7.
There's a nice summary of the implementation in this StackOverflow post: https://stackoverflow.com/questions/39980323/are-dictionaries-ordered-in-python-3-6
Does it make sense to do something similar by modifying CommonDictionaryStorage?
There's also a nice presentation by Raymond Hettinger about modern dictionaries which explains things at a high level.
Does it make sense to do something similar by modifying
CommonDictionaryStorage?
Yes, that is probably the way to go.