title: Get MAX 5 items from a grouped List with LINQ and C#
body: <p>I have a grouped List of items, grouped by the name.</p>
  
  <p>So for example I have item[0] that has 4 items, item[1] that has 6 items, item [2] that has 10 items etc.</p>
  
  <p>Now I want to get Max 5 items, ie those that have the most items inside this GroupedList.</p>
  
  <p>I am getting the grouped list as follows :-</p>
  
  <pre><code>IEnumerable&lt;List&lt;AuditLog&gt;&gt; auditLogsGouped = auditLogs.GroupBy(x =&gt;    x.EntityValue).Select(grp =&gt; grp.ToList());
  </code></pre>
  
  <p>How can I get the MAX 5 items from this list?</p>
  
  <p>Thanks for your help and time</p>