Hello everyone,
Suppose I have a Dictionary object instance, Dictionary<string, int>, the int is always positive. I want to get top 10 elements from the Dictionary with the maximum 10 int values, any efficient way to do this?
thanks in advance,
George
Bechir BejaouiRank #144 · 15.9K pointsPosted Jul 26, 2008, 2:49 PM EDT
George GeorgeRank #2,261 · 618 pointsPosted Jul 27, 2008, 3:22 AM EDT
Thanks Bechir,
I think SortedDictionary sort by keys, not values. But I want to sort by values. Any comments or ideas?
regards,
George