Reg - Sorting
Reg - Sorting
armaan
Posts: 19Questions: 7Answers: 1
Hello i have a order by descending order in my sql query but after using datatables this sorting changes , i need the default sorting to be disables but still i need sorting buttons
This discussion has been closed.
Answers
DataTables will ignore the ordering and use it's own. Use
order
to define how it should initially be sorted. You'll retain the sorting buttons on the column headers.To order by the first column in descending order use
Change the order option to suit your table.
thanks @rduncecb its working