How to Disable Auto Sort on DataTables
Disabling auto sort on datatables turns out to be very easy, but because this feature is active by default, sometimes I get confused when I sort data based on certain data, but the data always changes, it turns out the cause is auto sort datatables.
Setelah mencari di internet ternyata cukup mudah menonaktifkannya, hanya perlu menambahkan sedikit parameter saat menjalankan datatables.
Berikut ini kode yang harus ditambahkan untuk menonaktifkan auto sort pada DataTables:
$(document).ready( function() {
$('#example').dataTable({
"order": []
});
})
It's quite easy to disable auto sort on dataTables. If this article is useful, please share it with your friends.
Thank you for visiting and reading, hopefully it's useful