Sticky sorting in TreeGrid

If i register a ‘beforeSort’ listener on a TreeGrid, seems the sorting state direction to stuck somewhere.

see minimal example here : DHTMLX Snippet Tool

First click on “Name” column will print ‘desc’ into console,
any subsequent clicks on it will always print ‘asc’.

Icon on column showing sort directions changes its state as expected.
Tested with 8.x versions available on snippet site

“afterSort” listener seem to work as expected

I apologise for the delay with the reply.
Thank you for your report. The problem was confirmed. We’ll try to fix it in one of the future updates.
I’ll inform you about any progress on this issue.

Hello Roman.

We fixed your reported problem in the latest dhx.Suite update (v8.3.4.)
Now the beforeSort event should work properly.
You can test it in your original snippet.
Please, download the latest available dhx.Suite build from your client’s area to get this fix.
Thank you for your report.
Best regards.