title: Combine to array sorts into one?
body: <p>I was wondering if it is possible to combine my sorting code into one ?</p>
  
  <p>I sort my array firstly by enum, then by an id number from lowest to highest.</p>
  
  <p>So my current code looks like this:</p>
  
  <pre><code>_entities = _entities.OrderBy(a =&gt; a.Priority).ToArray(); //sort by enum
  _entities = _entities.OrderBy(a =&gt; a.PriorityID).ToArray(); //then sort by id
  </code></pre>
  
  <p>So the enum has:</p>
  
  <pre><code>High, Medium,Low
  </code></pre>
  
  <p>And IDs are just integers.</p>
  
  <p>So the end result should be like:</p>
  
  <pre><code>High¬
    0 , 1 ,2
  Medium¬
    0, 1, 2
  Low¬
    0, 1, 2
  </code></pre>
  
  <p>I don't know the syntax to combine these, or if this is as simple as it gets? But it does seem a bit inefficient to be sorting by each property one by one.</p>
  
  <p>Whats the correct way to do ths?</p>