DataTable sorting

DataTable sorting

sherrysherry Posts: 1Questions: 0Answers: 0
edited July 2011 in General
I think the sorting functionality is great. It customizable and feature rich. However, our users aren't ready for that. Is there a way that I can load the table with the default sort like it is now, then whenever the user clicks a column to sort, specify what column is always the secondary sort instead of building upon the sort order like it does now?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    To define no initial sort set aaSorting ( http://datatables.net/ref#aaSorting ) to an empty array. To define a permanent sort use aaSortingFixed ( http://datatables.net/ref#aaSortingFixed ). With these you can have a forced sort, or no sort.

    Allan
This discussion has been closed.