jquery datatables default sort

There are a couple of options:

  1. Just after initialising DataTables, remove the sorting classes on the TD element in the TBODY.

  2. Disable the sorting classes using http://datatables.net/ref#bSortClasses . Problem with this is that it will disable the sort classes for user sort requests – which might or might not be what you want.

  3. Have your server output the table in your required sort order, and don’t apply a default sort on the table (aaSorting:[]).

Leave a Comment