sort nested dictionary keys numerically
if I have a dictionary like this
{'even': {'1': 'odd', '0': 'even'}, 'odd': {'1': 'even', '0': 'odd'}}"
I want to sort this dictionary and make it look like this
{'even': {'0': 'even', '1': 'odd'}, 'odd': {'0': 'odd', '1': 'even'}}"
How could this be done?