Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable sorting on jQuery.DataTables init?

Is anyone tried DataTables, when I bind(init) it to a <table>, data is sorted.

Is there anyway to disable the default sorting?

like image 795
Eric Yin Avatar asked Dec 24 '11 13:12

Eric Yin


1 Answers

According to DataTabe's reference manual, this should work:

$('#example').dataTable({
    "aaSorting": []
});
like image 66
Ayman Safadi Avatar answered Oct 30 '22 13:10

Ayman Safadi