I am using Tablesorter plugin to sort the table .
fourth column is date fields having format :
–>30 Jan 2013
–>01 Feb 2013
when i try to sort format it gives wrong sorting.
My View page:(one of the date column )
<td onclick="viewTrainingeDetails(${privateTrainingInstance?.id})"><g:formatDate format="dd MMM yyyy" date="${privateTrainingInstance?.startDate}" /></td>
jquery
$(function() {
$("#myTable").tablesorter();
});
Try adding this custom parser (demo):
then initialize the plugin like this:
Update: for best results, make sure you are returning a valid date: