fnSort equivalent in DT 1.10?
fnSort equivalent in DT 1.10?
Hi all, anyone know if there's an equivalent to fnSort in DT 1.10+? I dug around the API but couldn't find one.
I want to create a button that, when clicked, automatically sorts the table by several columns. I know the user can click the columns manually, but there are four of them, and a button would be pretty smooth.
I can do this at runtime as well, but users may sort by various other columns while they work, and will want a button to return to the default sort easily.
Thanks in advance!
This question has an accepted answers - jump to answer
Answers
Conversion guide:
http://datatables.net/upgrade/1.10-convert
order (http://datatables.net/reference/api/order()) worked perfectly, thank you!