How can I sort this nested dictionary by the inner values. The keys will change so cannot sort by keys. The keys are integers and the values are floats.
NestedDict = {'1': {2: 0.3, 7: 0.5, 4: 0.4, 3: 0.75},
'2': {5: 0.3, 7: 0.5, 4: 0.4, 1: 0.75},
'3': {15: 0.3, 7: 0.5, 4: 0.4, 70: 0.75}}
This is the result I need. The values are sorted from greatest to least regardless of the keys.
# NestedDict = {'1': {3: 0.75, 7: 0.5, 4: 0.4, 2: 0.3},
# '2': {1: 0.75, 7: 0.5, 4: 0.4, 5: 0.3},
# '3': {70: 0.75, 7: 0.5, 4: 0.4, 15: 0.3}}