Hi,
thanks for your question, and sorry for the trouble.
The reason for this is that this a dd/mm/yyyy date format. To sort those, please take a look at the TablePress Extension from https://tablepress.org/extensions/datatables-sorting-plugins/
With that, you should not need that “Custom Command” either.
Regards,
Tobias
all the dates in the column are in the format dd/mm/yyyy and those without dates are just blank, but its still that one row with the date 20/08/2016 that comes in between the two dates, is it because there is a 0 before the month ?
Hi,
no, that 0 should not be an issue.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
http://goo.gl/xFZJRo / NuclearPenguin and its New Opportunities section, deadline date column
Hi,
thanks for the link! This indeed seems to be due to the date formats (dd/mm/yyyy vs. the default mm/dd/yyyy).
Now that you have installed the Extension, let’s set the format with this “Custom Command”:
"columnDefs": [ { "type": "date-eu", "targets": [ 2 ] } ]
(Note that the 2 indicates the third column, as counting those starts with 0.)
Regards,
Tobias
Using the command stops the sort function on the column :/
Hi,
the problem now might be the empty values in that column. Can you maybe add a date to them for testing?
Regards,
Tobias
Hello, added the value 00/00/0000 in the empty fields but no joy still that 20/08/2016 that comes inbetween to other dates :/
Hi,
there are also “Not Specified” entries in that column that might be causing this. All cells in that column must contain a date format.
Regards,
Tobias