How to change default sorting & disable sorting. $('.dataTables-example').dataTable({ "order": [[ 7, "desc" ]], columnDefs: [ { orderable: false, "targets": -1 } ] }); Notes: 1.It will change default sorting to 7 column 2. Disable sorting form last column.
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.