I’m using the datatable jQuery plugin; it works fine when sorting columns that contain text and numbers, but I have an issue with sorting columns that contain date values.
For example when I click on the date column I get:
01-03-2012
27-02-2012
29-02-2012
...
...
However the real order should be like this:
01-03-2012
29-02-2012
27-02-2012
NB: I’m using the French date format d-m-Y.
Did you look at the Sorting plug-ins page?
The following is copied directly from that page. You might have to tweak the code a bit (for example, splitting on
-rather than/, etc.) but most of the work is done for you: