Sort in desc, then asc, and then default

Sort in desc, then asc, and then default

binitbinit Posts: 5Questions: 2Answers: 0

$('#example').DataTable({ data:data, retrieve: true, stateSave: true, scrollY:scrollHeight, scrollX:true, scrollCollapse: true, paging: false, fixedColumns: { leftColumns: 3, rightColumns: 0 }, info: false, destroy: true, searching: false, ordering:true, aaSorting: [], columnDefs: [ { "sorting":[ "desc", "asc" ], "targets": [ "_all" ] } ], columns:columnsData, createdRow: function ( row, data, index ) { $('td', row).attr('dataPlayerID',data.playerId); }, autoWidth: true, orderMulti: true, deferLoading: 0 });
what is happening now is when I sort, (same head not multiple sort)
click1-desc
click2-asc
click3-desc

what I need is
click1-desc
click2-asc
click3-default load.

This discussion has been closed.