Requirement - column sort 3 state.
Requirement - column sort 3 state.
I am just posting this as a wish I have regarding the sorting options for DataTables columns.
Now we have 2 states; 'ascending' and 'descending', although there is a third state on a fresh page load; 'sortable'.
But once clicked on the column header, you can only choose between 'ascending' and 'descending'. The 'sortable' state of a column only appears if you are clicking on another column header.
The function to achieve a 'neutral' order (the order on load time) is available as a plug-in: https://cdn.datatables.net/plug-ins/1.10.16/api/order.neutral().js. But I would like to have a 3 state clickable column header: 'ascending', 'descending' and 'neutral'.
Replies
There is a bit of overlap discussion in this github issue.
I've added your request to my list of enhancements - thanks!
Allan
@allan, I remember that topic on GitHub, the October 2017 reaction was typed by my hands