title: How can I write a custom sort for jQuery Datatables?
body: <p>I am using the jQuery plugin Datables: <a href="http://www.datatables.net/" rel="nofollow">http://www.datatables.net/</a></p>
  
  <p>My example is here: <a href="http://live.datatables.net/wanebotu/1/edit" rel="nofollow">http://live.datatables.net/wanebotu/1/edit</a></p>
  
  <p>I have a few columns in my example table and one of them is "Name". I have added a few names that are the same but one starting in uppercase and the other all lowercase. For example: Ashton Cox, ashton cox. However, I do believe that the default sorting used in datatables is case-insensitive meaning the sorting is 'stable' (correct me if I am wrong). </p>
  
  <p>My problem is that when I sort it, the column becomes inconsistent. If it's ascending, uppercase letters will come first in the sense that the first row is Ashton Cox then ashton cox. If it is descending, the last row is ashton cox, then the second last row is Ashton Cox. </p>
  
  <p>Therefore, how can I write a custom sort such that the last row is uppercase first for descending, if it is the same word but capitalised. </p>
  
  <pre><code>E.g. for ascending:
  Ashton Cox
  ashton cox,
  Colleen Hurst
  colleen Hurst
  
  E.g. for descending: 
  colleen hurst,
  Colleen Hurst,
  ashton cox
  Ashton Cox
  </code></pre>
  
  <p>Sorry if this all sounds convoluted. It's a confusing problem with a confusing requirement.  </p>