Which of the following is the correct way to sort a C# dictionary by value?
Answer
Correct Answer: List<KeyValuePair<string, string>> myList = aDictionary.ToList(); myList.Sort((firstPair,nextPair) => { return firstPair.Value.CompareTo(nextPair.Value); } );
Explanation:
Note: This Question is unanswered, help us to find answer for this one