title: C# Sort vs JavaScript Sort
body: <p>I am having following array as input to sort values in descending order:</p>
  <pre><code>var cars = [&quot;8587009748118224023Po&quot;,&quot;8587009748118224023PP&quot;,&quot;8587009748118224023P,&quot;,&quot;8587009748118224023P$&quot;,&quot;8587009748118224023P&lt;&quot;,&quot;8587009748118224023P?&quot;]
  </code></pre>
  <p>In C#, I am using <strong>OrderByDescending</strong> and getting following output</p>
  <p><strong>C# code</strong>:</p>
  <pre><code>var rslt= cars.OrderByDescending(a =&gt; a);
  </code></pre>
  <p><strong>Result</strong> (commas added after each value):</p>
  <pre><code>8587009748118224023PP,
  8587009748118224023Po,
  8587009748118224023P&lt;,
  8587009748118224023P?,
  8587009748118224023P,
  ,
  8587009748118224023P$,
  </code></pre>
  <p>In Javascript, I am using <strong>sort</strong> and <strong>reverse</strong> and getting following different result</p>
  <p><strong>javascript code</strong>:</p>
  <pre><code>cars.sort();
  cars.reverse();
  </code></pre>
  <p><strong>Result</strong>:</p>
  <pre><code>8587009748118224023Po,
  8587009748118224023PP,
  8587009748118224023P?,
  8587009748118224023P&lt;,
  8587009748118224023P,
  ,
  8587009748118224023P$
  </code></pre>
  <p>Can anyone help me how to sort values in C# as like JavaScript?</p>