How to enable a Sort Order per Column?

How to enable a Sort Order per Column?

wesfloydwesfloyd Posts: 1Questions: 0Answers: 0
edited January 2010 in General
Hello,

Does anyone know if it is possible to enable real-time column sort order in DataTables? Similar to the way that Excel allows users to sort a group of columns in a specified order.

I have seen that Datatables allows the Sort Order to be specified during initialization of the datatable object, but has anyone worked on a feature or plugin that allows the user to manipulate this sort order real-time?

Thanks much!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi wesfloyd,

    I'm not sure I understand what you mean by 'real-time column sort'? A user can modify the sorting order by clicking on the TH element for the column they want to sort, and can use multi-column sorting by holding down the 'shift' key which clicking a column to add to the sort.

    Developers can add specific sorting functions as well using fnSort ( http://datatables.net/api#fnSort ) where you can give the table information about which column(s) you want it to sort on, and this action could be attached to (for example) a button.

    Does this help?

    Regards,
    Allan
This discussion has been closed.