C#: sort dictionary in descending order

Posted by Yang on Stack Overflow See other posts from Stack Overflow or by Yang
Published on 2010-05-11T01:06:56Z Indexed on 2010/05/11 1:14 UTC
Read the original article Hit count: 298

Filed under:
|

How do I sort a keyvalue pair with descending order of their values?

foreach (KeyValuePair<string, int> item in keyvalue.OrderBy(key => key.Value))
            {
            } 

© Stack Overflow or respective owner

Related posts about c#

Related posts about dictionary