title: Sort two Lists<T> together as one?
body: <p>I have two List which I am accessing by index (e.g. <code>Name[10]</code>, <code>Date[10]</code>). They're closely tied, so <code>Name[10]</code> is related to <code>Date[10]</code> and vice versa.   </p>
  
  <p>This design has worked well but now I need to sort them. I can sort them both individually but obviously that would remove the relationship between the two lists and make them worthless. </p>
  
  <p>I thought about using a <code>Dictionary&lt;string, DateTime&gt;</code> instead but it seems I can only access that by Key (which is also unworkable). Essentially I need three things, two values and one index which I can iterate through numerically (not <code>foreach</code>).   </p>
  
  <p>Can anyone help? It seems I either need to change data-structure or work out how to sort two distinct <code>List&lt;T&gt;</code> together... </p>
  
  <pre><code>public class Results
  { 
  public List&lt;string&gt; Name { get; set; }
  public List&lt;DateTime&gt; Date{ get; set; }
  }
  
  for (int x = 0; x &lt; results; x++)
  { z.N = results.Name[X]; z.D = results.Date[x]; } 
  </code></pre>