To order/sort a dictionary by Value in C# and VB.NET you can use the snippet below.
Sample C#
MyDict = MyDict.OrderBy(x => x.Value).ToDictionary(x => x.Key, x => x.Value);
Sample VB.NET
MyDict = MyDict.OrderBy(Function(x) x.Value).ToDictionary(Function(x) x.Key, Function(x) x.Value)
RT @CodeSnippetsNET: How to order a dictionary by Value in C# and #VB .NET http://t.co/xiBGEtnNDJ #coding #code #dotnet #csharp #dev #devel…
RT @CodeSnippetsNET: How to order a dictionary by Value in C# and #VB .NET http://t.co/xiBGEtnNDJ #coding #code #dotnet #csharp #dev #devel…