I have a dictionary which has some dictionaries inside. Like this:
Dict= {
"Item1": {"price": 73814.55, "date": f_actual},
"Item2": {"price": 75700, "date": f1},
"Item3": {"price": 84200, "date": f2}
}
I want to sort the attribute 'price' (from highest to lowest). I think I can use sorted function but I dont know how to refer to ´price´ key since they are nested to Item1, Item2, etc:
sorted(Dict, key = ??, reverse = True)
So, my question is how can I do this? Is there any other approach?