How can I sort my DataTables row by date?
问题 I want to sort my column by date: var table = $('#table').DataTable({ "order": [[0, "desc"]], }); But here is my result: 29.06.17 27.06.17 26.06.17 22.08.17 18.10.17 15.09.17 What I would expect is this: 18.10.17 15.09.17 22.08.17 29.06.17 27.06.17 26.06.17 June, then August, then September and then October.... I tested also: "columnDefs": [ { "type": "date-dd.mm.yy", targets: 0 } ], But this didn't change anything. 回答1: dataTables date type uses Data.parse() which only supports a limited set