title: Can I use the orderby linq keyword with a comparer?
body: <p>I was looking at the 101 LInQ examples [1] and they imply that I can use a Comparer with the LInQ orderby feature. But in the example, they punt and use an extension method. My question is, can I use a comparer within my Language Integrated Query?</p>
  
  <p>[1] <a href="http://code.msdn.microsoft.com/SQL-Ordering-Operators-050af19e#OrderBycomparer" rel="nofollow">http://code.msdn.microsoft.com/SQL-Ordering-Operators-050af19e#OrderBycomparer</a></p>
  
  <p>Update: What I am looking for is actual language integration of my query. Something like the following would be nice:</p>
  
  <pre><code>string[] words = { "aPPLE", "AbAcUs", "bRaNcH", "BlUeBeRrY", "ClOvEr", "cHeRry" }; 
  var sortedWords = from x in words
                    orderby (x,y) =&gt; string.Compare(x,y)
                    select x;
  </code></pre>
  
  <p>Or more concisely:</p>
  
  <pre><code>string[] words = { "aPPLE", "AbAcUs", "bRaNcH", "BlUeBeRrY", "ClOvEr", "cHeRry" }; 
  var sortedWords = from x in words
                    orderby string.Compare
                    select x;
  </code></pre>