title: Sorting date in datatable
body: <p>I'm trying to sort dates in my datatable like <code>DD/MM/YYYY</code> (day, month, year) .
  I was following <a href="https://datatables.net/plug-ins/sorting/" rel="noreferrer">https://datatables.net/plug-ins/sorting/</a> .  </p>
  
  <p>but all the date sorts seem to be deprecated and point to the datetime plugin: <a href="https://datatables.net/blog/2014-12-18" rel="noreferrer">https://datatables.net/blog/2014-12-18</a></p>
  
  <p>I don't seem to be able to get the datetime plugin working to sort. I tried the old way, with date. The initialize looks like this: </p>
  
  <pre><code>var historiektable = $('#dataTableHistoriek').DataTable({
      "paging" : false,
      "ordering" : true,
      "scrollCollapse" : true,
      "searching" : false,
      "columnDefs" : [{"targets":3, "type":"date"}],
      "bInfo": true
  });
  </code></pre>
  
  <p>Without sorting it shows the table results like this: </p>
  
  <p><a href="https://i.stack.imgur.com/1zvcy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1zvcy.png" alt="Without sorting, I get this from the backend"></a></p>
  
  <p>When I put <code>ordering:true</code> 2 of the 2016 dates appear somewhere else in the list (so, not in order you would expect)</p>
  
  <p><a href="https://i.stack.imgur.com/x3UhZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x3UhZ.png" alt="With sorting on date"></a></p>
  
  <p>With everything pointing at <a href="http://momentjs.com/" rel="noreferrer">Moment</a> I thought I needed to sort with that. But I'm not sure how.</p>
  
  <p>I saw <code>$.fn.dataTable.moment('DD.MM.YYYY');</code> somewhere, but I understood that the <code>fn</code> doesn't work with this newest version of datatables anymore?</p>
  
  <p>Anyone knows how to sort dates? </p>