I am trying to sort dates in my data table, for example DD/MM/YYYY(day, month, year). I followed https://datatables.net/plug-ins/sorting/ .
but all date sortings are outdated and point to the datetime plugin: https://datatables.net/blog/2014-12-18
I cannot get the datetime plugin to work for sorting. I tried the old way, with a date. Initialization is as follows:
var historiektable = $('#dataTableHistoriek').DataTable({
"paging" : false,
"ordering" : true,
"scrollCollapse" : true,
"searching" : false,
"columnDefs" : [{"targets":3, "type":"date"}],
"bInfo": true
});
Without sorting, the table results are displayed as follows:

When I put ordering:true2 dates of 2016, they appear somewhere else on the list (therefore not in the order you expect)

When everything indicated the moment , I thought that I needed to deal with this. But I'm not sure how.
- $.fn.dataTable.moment('DD.MM.YYYY');, , fn ?
- , ?