title: Sort a list of lists by minimum value
body: <p>I am trying to sort the lists inside a list by their minimum integer value. This is where I am at so far.</p>
  
  <pre><code>var SortedList = from lists in List 
                   orderby lists.List.Min(Min=&gt;Min.value) 
                   ascending
                   select list ;
  </code></pre>
  
  <p>For example:</p>
  
  <pre><code>var x = new List&lt;int&gt;{ 5, 10, 4, 3, 0 };
  var y = new List&lt;int&gt; { 4, -1, -5, 3, 2 };
  var z = new List&lt;int&gt; { 3, 1, 0, -2, 2 };
  
  var ListofLists = new List&lt;List&lt;int&gt;&gt; {x, y, z};
  </code></pre>
  
  <p>The output of my Linq shall be, to sort the lists by the minimum value in the list of lists. The sequence for the Lists in my example would be:</p>
  
  <p>y -> z -> x</p>
  
  <p>I have tried a lot of linq expressions and searched through the web. The question seems to be very simple... Thanks for any kind of help!</p>