I have been working on a python script, but have come across a problem with sorting my dictionary.
I need to sort it by a value’s value from greatest to least. Here is my dictionary setup:
{“Value1”:{“OtherValue”:0,”ValueINeed”:50},”Value2”:{“OtherValue”:1,”ValueINeed”:100}}
the expected result would be:
{“Value2”:{“OtherValue”:1,”ValueINeed”:100},”Value1”:{“OtherValue”:0,”ValueINeed”:50}}
How can I achieve this?