Disabling sorting in datatables not functioning

Solution 1:

Try this:

$(document).ready( function () {$('#example').dataTable( {
    "bSort": false
  } );
} 

Solution 2:

try this:

this is to disable initial sort

$(document).ready( function() {
  $('#example').dataTable({
    "aaSorting": []
});
})

Solution 3:

Since version 1.10 of DataTables, you can use the following option to disable the ordering completely:

$('#dataTable').dataTable({
  ordering: false
});

Also see: https://datatables.net/reference/option/ordering