title: DataTable sorting date with JQuery
body: <p>Yo everyone,</p>
  
  <p>I wanna sort some dates "desc" and "asc" but I've got :<br>
  <strong>01/10/2014<br>
  09/10/2014<br>
  23/09/2014<br>... (Listed by day)<br></strong>
  What I used : </p>
  
  <pre><code>&lt;script type="text/javascript" src="js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="//cdn.datatables.net/plug-ins/a5734b29083/sorting/date-euro.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I solved my prob with : </p>
  
  <pre><code>$(document).ready(function() {
      var table = $('#example').DataTable({
              "aoColumns" :[
                              { "sType": "date-euro", "aaSorting": [[ 0, "desc" ]], "bSortable":true  },
                              null,
                              null,
                              null
                          ]});
  
  } );
  </code></pre>
  
  <p><br>But now : <br>
  <strong>09/10/2014<br>
  01/10/2014<br>
  23/09/2014<br>... (Listed by month, and by day)<br></strong> and the sort is disabled.<br>
  I'm totally lost about the step to follow to solve this.
  <br><br><br>
  NB1: I'm using AngularJS :
  <br></p>
  
  <pre><code>.controller('myCtrl', ['$scope', '$route', function ($scope,$route) {
  </code></pre>
  
  <p>NB2: my dates are generated by a <em>date_create</em> and <em>date_format</em> from mySQL format.
  <br>
  <br>
  Thanks in advance for the helps.
  <br><br>
  <strong>WORKING RESULT</strong> :
  <br><br>I've found a solution :<br>
  my new .js file :
  <br></p>
  
  <pre><code>$(document).ready(function() {
  
      var table = $('#example').DataTable();
  
  } );
  </code></pre>
  
  <p><br>
  and in my HTML / PHP I wrote in my date column : 
  <br></p>
  
  <pre><code>&lt;?php
      $date = date_create($row[0]);
      echo "
      &lt;small hidden&gt;".date_format($date, 'U')."&lt;/small&gt; 
      ".date_format($date, 'd/m/Y H:i:s').";
  ?&gt;
  </code></pre>
  
  <p>explications :
  <br> <em>date_create</em> : take the DATETIME value stocked in column 1 in mySql to be formatted
  <br> <em>date_format</em> : change the date format as you wish
  <br> <em>U</em> : timestamp value, difference between your date value and 01/01/1970 (ex : 1225972800 = 06/11/2008)
  <br><br>
  " small hidden " doesn't appear but is used to sort the date because it's the first value of the column.</p>