Best way to default sort?

Best way to default sort?

vol7ronvol7ron Posts: 43Questions: 11Answers: 0
edited March 2013 in General
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]

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    > Does aaSorting support custom sorts?

    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
This discussion has been closed.