title: Using LINQ to Group By List<string> Values
body: <p>I have the following SortedDictionary:</p>
  
  <pre><code>SortedDictionary&lt;string, List&lt;string&gt;&gt; dict 
              = (SortedDictionary&lt;string,List&lt;string&gt;&gt;) MyObj.GetDict();
  </code></pre>
  
  <p>There are many lists with the same values in dict, and I want to use LINQ to collapse all these rows with similar lists into one row. However, each list is an object, so LINQ sees them all as distinct entities.</p>
  
  <p>My question is: how can I set up my code so that a GroupBy(grp => grp.Value) actually groups the dictionary by the contents of the list, and not the list object itself?</p>