Old pull request #2167 - cannot find the feature in the latest version

Tags: #<Tag:0x00007f8b28cf7bb8>

Hello,
I found an old github pull request (https://github.com/handsontable/handsontable/pull/2167)
concerning the ability to sort by clicking the entire header.
I don’t seem to find it in the latest version (7.1) though… I still have to click the header text in order to do the sorting.

Can you please enlighten me?

Welcome Matteo,

the proposed change did not meet the specification of the plugin. It hasn’t been merged.

If you need this feature I propose to try to develop it via afterOnCellMouseDown hook

{row: 0, col: -1}.

is a column header. Then you can access the instance.getPlugin(‘columnSorting’), check the current order and call the sort() method to change it.