Disable sorting table by first column
Disable sorting table by first column
JamesJGoodwin
Posts: 1Questions: 1Answers: 0
Hi. I'd like to disable table sorting by the first column when page loaded. How can i do this action?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Do you mean you wish to disable sorting for the first column? If so, set https://datatables.net/reference/option/columns.orderable to false. If you experience a bug where the table still sorts initially by the first column even with this setting, change the initial sorting of the table using https://datatables.net/reference/option/order .