Sorting dictionary <string, Dictionary <string, string >> by dictionary internal value using LINQ?

I can't seem to wrap my head around this. I need to sort a dictionary by the value of an internal dictionary using LINQ. Any thoughts?

+2


source to share


1 answer


Do you want all values ​​to be sorted by internal value?



from outerPair in outer
from innerPair in outerPair.Value
orderby innerPair.Value
select new {
    OuterKey = outerPair.Key,
    InnerKey = innerPair.Key,
    Value = innerPair.Value
};

      

+2


source







All Articles