title: Sort List where object IsNot Nothing
body: <p>I am trying to sort a list of classes, and I need the classes with a subclass that isnot nothing first in the list. I thought the following would work but it doesnt.</p>
  
  <pre><code>ListOfClasses.Sort(Function(x, y) If(x.SubClass IsNot Nothing, 1, 0))
  </code></pre>
  
  <p>I know this is a hack at best (not that it works) but I thought it would move the classes up the order where the subclass was not equal to nothing?</p>