default sort direction for columns
default sort direction for columns
veloopity
Posts: 87Questions: 36Answers: 2
Alphanumeric columns need to sort A-Z when their headers are clicked for the first time. Numeric columns in my project, when clicked for the first time (i.e. another column was the sort column before that) need to sort downwards (from high values to low values) - Datatables default seems to be the other way around for numeric values. How can this be set per column?
This question has an accepted answers - jump to answer
Answers
See if
columns.orderSequence
does what you want.Kevin
thank you!