Requirement - column sort 3 state.

Requirement - column sort 3 state.

Tester2017Tester2017 Posts: 145Questions: 23Answers: 17

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

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    There is a bit of overlap discussion in this github issue.

    I've added your request to my list of enhancements - thanks!

    Allan

  • Tester2017Tester2017 Posts: 145Questions: 23Answers: 17
    edited March 2018

    @allan, I remember that topic on GitHub, the October 2017 reaction was typed by my hands ;)

This discussion has been closed.