Getting column header sorting to sort in descending order on first click
Getting column header sorting to sort in descending order on first click

So currently, the datatable will sort in ascending order (lowest to highest) by default on first click of any column header. How would I go about setting it to sort by descending instead on first click (highest to lowest)?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
columns.orderSequence
can be used to control that. Keep in mind also that you might need to changeorder
which defines the default order, regardless ofcolumns.orderSequence
.Allan
That worked - thanks for the help Allan!