title: How do I guarantee node order for an XPath 'OR' query
body: <p>I have a snippet of XML that looks like</p>
  
  <pre><code>&lt;body&gt;
     Some text....
     &lt;nodeA&gt;....&lt;/nodeA&gt;
     more text
     &lt;someOtherNode&gt;
        &lt;nodeA&gt;.......&lt;/nodeA&gt;
     &lt;/someOtherNode&gt;
     &lt;nodeB&gt;.......&lt;/nodeB&gt;  
     etc.....
  &lt;/body&gt;
  </code></pre>
  
  <p>I'm selecting all nodeA and NodeB nodes inside <code>&lt;body&gt;</code> using an XPATH query similar to
  <code>//nodeA|//nodeB</code></p>
  
  <p>As I understand it, .NET supports XPath 1.0 which does not guarantee node order.</p>
  
  <p>How can I guarantee selected nodes are returned in document order in my OR query : that's to say: </p>
  
  <pre><code>nodeA, nodeA, nodeB   
  </code></pre>