Sorting of formatted date column

Sorting of formatted date column

vahemikayelyanvahemikayelyan Posts: 1Questions: 1Answers: 0

Hello to everyone! can anyone help me please I installed dataTable and I have date column
like in 20 Maj 2017 format and it does not sort correct:

dTable = $('#dataTable').DataTable({
dom: '<"top"f>rt<"bottom"p>',
"order": [[ 0, "desc" ]],
"columnDefs": [
{ type: "datetime-moment", targets: 0 },
{
"targets": 4,
"orderable": false
}
],
});
$.fn.dataTable.moment( 'D M YYYY' );

I tried with moment js but it also did not help its too urgent please help thanks!

This discussion has been closed.