title: Javascript sorting to match SQL Server sorting
body: <p>Can anyone point me towards a sorting algorithm in javascript that would sort the same way SQL Server does (for nvarchar/unicode columns)?</p>
  
  <p>For reference, my previous question about this behavior can be found here: <a href="https://stackoverflow.com/questions/3213717/sql-server-2008-different-sort-orders-on-varchar-vs-nvarchar-values">SQL Server 2008 - different sort orders on VARCHAR vs NVARCHAR values</a></p>
  
  <p>Rather than attempting to change the sorting behavior on the server side, is there a way I can match this on the client side? My previous question specifically talked about dashes in sort orders, but I'm going to assume there's a little more to it than simply ignoring dashes as part of the sort.</p>
  
  <p>I have added some additional use cases here to better demonstrate the issue</p>
  
  <p>Sample data as sorted from SQL Server (2008):</p>
  
  <pre><code>?test  
  ^&amp;$Grails Found  
  bags of Garbage  
  Brochures distributed  
  Calls Received  
  exhibit visitors  
  Exhibit Visitors  
  -Exhibit Visitors  
  --Exhibit Visitors  
  Ëxhibit Visitors  
  Grails Found  
  </code></pre>
  
  <p>How can I get javascript to sort the same values in the same way?</p>
  
  <p>Please let me know if I can further clarify.</p>