Change in bootstrap datatable

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.

Comments