Need to get the currently sorted column index

Need to get the currently sorted column index

purnimapurnima Posts: 1Questions: 1Answers: 0

I tried few things while from searching from google..

$('#mytable').dataTable().fnSettings().aaSorting[0][0];

tried this but error like fnSettings is null...
Can any one give any suggestions how to do it...

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49

    Just call order() on your DataTable variable.

This discussion has been closed.