External sort button

External sort button

PhrozenPhrozen Posts: 2Questions: 1Answers: 1

Hi everybody. I'm using 1.10 DT.
I need to add external sort buttons to my table.
I've tried to use old fnSort I found in legacy section, but it doesnt work since 1.10. Are there any similar function or any other way to make an external button to sort a column?

This question has an accepted answers - jump to answer

Answers

  • PhrozenPhrozen Posts: 2Questions: 1Answers: 1
    Answer ✓

    Solved:

    oTable.order([0, 'asc']).draw();

    :))

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin

    Perfect - order() is the reference documentation if anyone else finds this.

    Allan

This discussion has been closed.