jQuery : DataTables : Disable sorting for all columns

Enable or disable sorting of columns

Sorting of individual columns can be disabled by the “bSortable” option for each column.

Note that this will disable sorting all around, so there is no need to disable it on individual columns

1
2
3
4
5
$(document).ready( function () {
  $('#example').dataTable( {
    "bSort": false
  } );
} );

To disable individual columns visit this link

Source:

http://legacy.datatables.net/usage/features#bSort

Leave a comment