Best way to default sort?
Best way to default sort?
If one of your fields has a custom sort function (eg to sort a date/time field that has format "YYYY-MM-DD HH:MM:SS AM") and you want the default sort to be that column and another column that has no custom sort, what would be the best way to do that?
Does aaSorting support custom sorts? [code]aaSorting : [[col1num,'asc'],[col2num, 'desc']] [/code]
Does aaSorting support custom sorts? [code]aaSorting : [[col1num,'asc'],[col2num, 'desc']] [/code]
This discussion has been closed.
Replies
Yes :-). As long as your content can be sorted correctly (for which you might need a sorting plug-in in this case), aaSorting can do a multi-column sort.
Allan