Date field sorting problem
-
Hi Tobias,
Thanks again for your previous help. I sent a donation a couple of weeks back from minuteworks.co.uk.
I am just trying to make my date column sort correctly but I can’t get it to work. I’ve followed your advice here (https://tablepress.org/extensions/datatables-sorting-plugins/) and here (https://www.ads-software.com/support/topic/date-field-not-sorting-correctly/).
My custom commands currently looks like this:
"columnDefs": [ {"visible": true, "targets": [0,2,4,5,8,10]}, {"visible": false, "targets": '_all'}, { "type": "date", "targets": [ 2 ] }, ], "buttons":[ { "extend": "colvis", "text": "Show/Hide Columns" }, { "extend": "csv", "text": "Export", "exportOptions": { "columns": ":visible" } } ]
Before I added that custom command code it was sorting but just not in the correct order. Now it appears to have completely stopped the sorting from working. Do you have any advice?
Many Thanks,
JimmyThe page I need help with: [log in to see the link]
- The topic ‘Date field sorting problem’ is closed to new replies.