Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# order a sorted list by key

SortedList<string,bool> l = new SortedList<string, bool>();
        l.Add("a", true);
        l.Add("b", false);
        l.Add("c", true);
        l.Add("d", false);
        var orderByVal = l.OrderBy(kvp => kvp.Key);
 
PREVIOUS NEXT
Tagged: #order #sorted #list #key
ADD COMMENT
Topic
Name
1+5 =