title: Sort a list by multiple fields
body: <p>I have problem where sort one list with more one field.</p>
  
  <p>necessary to organize two courses simultaneously by color first and then the banana position.</p>
  
  <p>Names of entities are only for example.</p>
  
  <pre><code> private List&lt;Banana&gt; OrderProduct(List&lt;Banana&gt; list)
      {
          list.Sort(
              delegate(Banana b1, Banana b2)
              {
                  return b1.Green.CompareTo(b2.Banana) &amp;&amp; b1.Position.CompareTo(b2.Position);
              });
          return lista;
      }
  </code></pre>