title: Filter values in linq orderby
body: <p>Is there a way to filter the value -1 (from the <code>IndexOf</code> when txt not found in item) in the below query?</p>
  
  <pre><code>var sortedArray = array.OrderBy (item =&gt; item.IndexOf(txt)).ToArray();
  </code></pre>
  
  <p>Any pointers will be helpful.</p>
  
  <p>If I use Where, it would be using <code>IndexOf</code> twice, is there a way to use <code>IndexOf</code> only once?</p>