title: LINQ: Order By Count of most common value
body: <p>I'm trying to create an "ordered" List of objects in c#, where the list will be ordered by the most common occurrences of values in ImdbId property.
  I am not using database i am getting the results from remote api in list and i need just to sort the list in elegant way.</p>
  
  <pre><code>class Movie
  {
  String ImdbId {get; set; }
  String Name {get;set;}
      ... more properties
  }
  </code></pre>
  
  <p>Example of unsorted list:</p>
  
  <pre><code>imdbId  | Name
  698649  | "Sex and the City" Models and Mortals
  698669  | "Sex and the City" The Awful Truth
  698649  | "Sex and the City" Models and Mortals
  698649  | "Sex and the City" Models and Mortals
  698679  | "Sex and the City" The Drought
  698697  | "Sex and the City" Valley of the Twenty-Something Guys
  1568911 | War Horse
  </code></pre>
  
  <p>And the sorted should look like this:</p>
  
  <pre><code>imdbId  | Name
  698649  | "Sex and the City" Models and Mortals
  698649  | "Sex and the City" Models and Mortals
  698649  | "Sex and the City" Models and Mortals
  698669  | "Sex and the City" The Awful Truth
  698679  | "Sex and the City" The Drought
  698697  | "Sex and the City" Valley of the Twenty-Something Guys
  1568911 | War Horse
  </code></pre>
  
  <p>Here is another example:</p>
  
  <pre><code>imdbId   |  Name
  1568911 |   War Horse 
  698690  |   "Sex and the City" The Turtle and the Hare 
  698653  |   "Sex and the City" Old Dogs, New Dicks 
  698690  |   "Sex and the City" The Turtle and the Hare 
  698690  |   "Sex and the City" The Turtle and the aHare 
  1000774 |       Sex and the City 
  </code></pre>
  
  <p>And the sorted should look like this:</p>
  
  <pre><code>imdbId  | Name
  698690  | "Sex and the City" The Turtle and the Hare 
  698690  | "Sex and the City" The Turtle and the Hare 
  698690  | "Sex and the City" The Turtle and the aHare 
  698653  | "Sex and the City" Old Dogs, New Dicks 
  1000774 | Sex and the City
  1568911 | War Horse  
  </code></pre>
  
  <p>I was trying following but no luck.</p>
  
  <pre><code>List&lt;Movie&gt; newList = List
       .OrderByDescending(a =&gt;  a.ImdbId)
       .ThenByDescending(a =&gt; a.ImdbId.Count())
       .ToList();
  </code></pre>
  
  <p>Any idea how to achieve this with lambda or LINQ ?</p>