title: Cannot implicitly convert type 'System.Linq.IOrderedEnumerable<System.Xml.XPath.XPathNavigator>' to 'System.Xml.XPath.XPathNodeIterator'
body: <p>I was wondering if anyone has an idea about the following error</p>
  
  <blockquote>
    <p>Cannot implicitly convert type
    'System.Linq.IOrderedEnumerable'
    to
    'System.Xml.XPath.XPathNodeIterator'</p>
  </blockquote>
  
  <p>Here is the code generating the error.</p>
  
  <pre><code>var randomNodeset = from XPathNavigator node in nodeset
      orderby Guid.NewGuid()
      select node;
  return (XPathNodeIterator)randomNodeset;
  </code></pre>
  
  <p>Thanks for any help</p>