There is a way to something like :
columnDefs: [ if(sorting direction of the target is 'asc'){ { orderData: [14,13,12,0], targets: 0 } } else{ { orderData: [18,13,12,0], targets: 0 } } ]
Thanks
No, there's not. But you could possible listen for the order, get the current order, and if it is just column 0, change the sorting to be how you want with sort(),
order
sort()
Colin
Thnaks ! It is not only for column 0 but also for 1 or 2 or 3 ....
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
No, there's not. But you could possible listen for the
order
, get the current order, and if it is just column 0, change the sorting to be how you want withsort()
,Colin
Thnaks ! It is not only for column 0 but also for 1 or 2 or 3 ....