Hello Mootools users too, I have been wondering more less the same question...
I'm running around and looking for the right solution to do this : I have an HtmlTable sortable by many columns. I want to set a column as a fixed second sort option so some elements stay linked together. Example : http://mootools.net/shell/463Mn/ - If I want to sort by Text, I'd like that first sort takes index 1 and 0 as a second sort element - If I want to sort by Country, I'd like that first sort takes index 2 and 0 as a second sort element The idea I first had was to use the option onSort to resort the current Table (Table.sort()) and pass the index+reverse+prepare to do this. But I'm wondering on the "good" idea. Would that be a good way ? This is more less the same question as Maciej as I can't find some examples to use onSort and prepare ... Many thanks for your help all, Axel. On 3 mai, 20:38, Maciej Trebacz <[email protected]> wrote: > Hello Mootools users, > > I have a question about HtmlTable.Sort. In documentation of sort() function > it states that you can have secondary sorting using this class. However I > couldn't guess how one can use this. Can anyone show me an example or point > me in the right direction? I have a table with names and some functions, and > I want to make it work when user sorts against "function", and two items has > same "function" it should then sort it by "name". > > -- > Best regards, > Maciej "mav" Trębacz
