Look in HtmlTable.Sort.js https://github.com/mootools/mootools-more/blob/master/Source/Interface/HtmlTable.Sort.js#L259
There's even a method defined for you to add another: https://github.com/mootools/mootools-more/blob/master/Source/Interface/HtmlTable.Sort.js#L328 Just pass it an object like the others. On Thu, Feb 10, 2011 at 6:24 AM, hamburger <[email protected]> wrote: > Hello, > i have a problem with my table i would like to sort by date. > my first collum is a date like 31. Januar 2011 - 23:29:07 > but it sorts it by 31 not by date. > the docs says that it will be sorted by date and it mentiones > something by parsers what i do not understand. > > my code: > > var myTable = new HtmlTable($('theTable'), > {sortable: true, > zebra: true, > classZebra: "zebra", > classHeadSort:"downArrow", > classHeadSortRev :"upArrow", > classCellSort:"focusedColumn", > }); > > where or how can i add the parser here? > thanks for help in advance >
