title: sort list of objects in VB.NET by two elements
body: <p>I would like an extension of a question previously posted here</p>
  
  <p><a href="https://stackoverflow.com/questions/11735902/sort-a-list-of-object-in-vb-net">Sort a List of Object in VB.NET</a></p>
  
  <p>In that question, the OP is asking how to sort a list of objects in VB.NET.</p>
  
  <p>His example uses something like</p>
  
  <pre><code>passenger.name
  passenger.age
  passenger.surname
  </code></pre>
  
  <p>And then, the accepted answer uses</p>
  
  <pre><code>theList.Sort(Function(x, y) x.age.CompareTo(y.age))
  </code></pre>
  
  <p>To that point, everything is ok.</p>
  
  <p>My extension to this is to ask what happens if, for example, I am sorting by age, like the example, however, let's say that 2 passengers have the same age, then, in that case, I would like to use a second parameter (let's say <code>passenger.name</code>), to sort.</p>
  
  <p>Could it be done using the same <code>theList.Sort</code> expression?</p>