$(document).ready(function() {
$('#example').DataTable( {
"order": [[ 3, "desc" ]]
} );
} );
$(document).ready( function() {
$('#example').dataTable({
/* No ordering applied by DataTables during initialisation */
"order": []
});
})
$('#example').dataTable( {
"order": [],
// Your other options here...
} );
$('#id-of-my-table').DataTable({
"columnDefs": [
{ "orderable": false, "targets": [0, 4, 5, 6] },
{ "orderable": true, "targets": [1, 2, 3] }
]
});
$(document).ready( function() {
$('#example').dataTable({
"aaSorting": []
});
})
For Datatable Version > 1.10
$(document).ready( function() {
$('#example').dataTable({
"order": []
});
})
$(document).ready( function() {
$('#example').dataTable({
/* Disable initial sort */
"aaSorting": []
});
})
Javascript12345$(document).ready(function() { $('#example').DataTable( { order: [[ 3, 'desc' ], [ 0, 'asc' ]] } );} );