I am using a Jquery plugin called datatables
Its fantastic, however I cannot get the dates to sort correctly according to the dd/mm/yyyy format.
I have looked at their support formats but none of these fixes seem to work.
Can anybody here help me please?
Update 2020: HTML Solution
Since HTML 5 is so much developed and almost all major browser supporting it. So now a much cleaner approach is to use HTML5 data attributes (maxx777 provided a PHP solution I am using the simple HTML). For non-numeric data as in our scenario, we can use
data-sortordata-orderattribute and assign a sortable value to it.HTML
Here is working HTML solution
jQuery Solution
Here is working jQuery solution.
Add the above code to script and set the specific column with Date values with
{ "sType": "date-uk" }and others as null, see below: