dict = {a:{x:2,y:2}, b:{x:0,y:2}, c:{x:2,y:0}, d:{x:0,y:0}}
I want to sort a dictionary like this based on increasing order of 'y' and then decreasing order of 'x' and return the keys.
I found a similar question here- Sort nested dictionary by value, and remainder by another value, in Python, but I want to know how to apply reverse sort on only one of the values.