search for: sorterfunc

Displaying 1 result from an estimated 1 matches for "sorterfunc".

Did you mean: sorterfuncs
2005 Sep 14
13
table sorting/manipulation library?
...lt;thead><tr><th>string</th><th>number</th><th>date</th></tr></thead> <tfoot /> <tbody> .......... </tbody> </table> <script type="text/javascript"> document.getElementById(''myTable'').sorterFuncs = [ String, Number, function(str) { var dateSplit = str.split(/\D/); //assume we''re in MM/DD/YYYY format return (dateSplit[2] * 10000) + (dateSplit[0] * 100) + (str[1] * 1); } ]; </script> ---------------------- That''s it. Our table now correctly sorts...