Hi,
I have a table with 4 columns. The last one contains date (dd/mm/yyyy format).
But the date doesn't sort "properly". Can anyone help me ? (i'm completely new to javascript).
Here's a part of my code :
What I have to add for sorting date and where ?
In advance thanks,
JD
I have a table with 4 columns. The last one contains date (dd/mm/yyyy format).
But the date doesn't sort "properly". Can anyone help me ? (i'm completely new to javascript).
Here's a part of my code :
<link href="table/css/style.css" rel="stylesheet" media="all" type="text/css"> <script type="text/javascript" language="javascript" src="libraries/jquery/jquery.js"></script> <script type="text/javascript" language="javascript" src="libraries/jquery/jquery.dataTables.min.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#mytable').dataTable( { "bJQueryUI": true, "oLanguage": { "sUrl": "table/language/dataTables.french.txt" }, "sPaginationType": "full_numbers", "aoColumns": [ {"bSortable": true}, {"bSortable": false}, null, null ] } ); } ); </script> <table id="mytable" class="display"> <thead> <tr> <th class="border-left">#</th> <th>Ecouter</th> <th>Nom</th> <th class="border-right">Date</th> </tr> </thead> <tbody> <tr class="border-top"> <td>1</td> <td>xxxxxxxxxxxxxxxxxxxxxxxxxx</td> <td>xxxxxxxxxxxxxxxxxxxxxxxxxx</td> <td>01/09/2010</td> </tr>
What I have to add for sorting date and where ?
In advance thanks,
JD