I have a Dictionary<char, int> charstat
to count occurrences of a character. I want to get the 5 most common character counts from this dictionary. How do go about doing this.
Some example data:
<'T', 1>
<'A', 2>
<'C', 5>
<'Q', 10>
<'B', 3>
<'Z', 7>
And from this I want to get in order of the largest count:
Q
Z
C
B
A