Is there a way of changing the sort column in datatable by checking a checkbox ? When I click a "search button" to get data from database, I want the sort to be whatever the checkboxes as checked, like 1 and 3 or only 2 or only 3 and so on.
when i check the box "Nome do Paciente", i want the column "Nome do Paciente" to be the deafult sort for that search.