I have a dictionary say:
Red : 2
Blue : 1
Yellow : 9
Black : 9
White : 5
I need to generate a list of keys sorted by the values:
[Blue, Red, White, Black, Yellow]
Is there a neatish way of doing this?
I have had a look around, and there are similar questions, but they all seem to be sorting values or keys only.