J
julio
How do you sort a dictionary on __values__? Obviously, i'd like to maintain
the functionality of a dictionary, so apart from the values being sorted, i'd
like to be able to say
k = frequency["foo"];
Otherwise, I could use a List<KeyValuePair<string, int>> and Sort() the list
with the delegate
(x,y)=>return x.Value.CompareTo(y.Value);
thanks
the functionality of a dictionary, so apart from the values being sorted, i'd
like to be able to say
k = frequency["foo"];
Otherwise, I could use a List<KeyValuePair<string, int>> and Sort() the list
with the delegate
(x,y)=>return x.Value.CompareTo(y.Value);
thanks