Is there any way to iterate over a Dictionary, in sorted order, sorted by VALUE not key?
I did read abut the “SortedDictionary” object, but sadly, that is sorted by key.
One solution would be for me to flip all of my keys with my values, and place them into a SortedDictionary (as they are all integers) — However, I’m not entirely sure how to go with that one either.
Is there any way to iterate over a Dictionary, in sorted order, sorted by
Share
Get the pairs of keys/values out, sort them, and iterate. Dead easy using LINQ: