To enable sort on a column, using the sortDirections parameter with values ['ascend', 'descend']. With this setting there are 3 sorting options: 'ascend', 'descend', 'unsorted'.
Is there a simple way to force sorting, remove the unsorted option?
For example:
Given a list of unsorted numbers [1, 5 ,2 ,10] . Currently, I can set sortDirections with values ['ascend', 'descend']. This will provide 3 options, sort in ascending order, sort in descended order AND unsorted, e.g. same as the original numbers.
Desired behavior:
I would like to force sort, meaning I don't want the 'unsorted' option to be available. If the user clicks the column header, the whole column should be sorted either in ascending order or in descended order.