orderable false in datatable code example
Example 1: orderable false in datatable
$('#example').DataTable( {
columnDefs: [
{ orderable: false, targets: 0 }
]
} );
reference:
https://datatables.net/reference/option/columns.orderable
Example 2: order datatable
$(document).ready(function() {
$('#example').DataTable( {
"order": [[ 3, "desc" ]]
} );
} );