Error datatable: sorting methods do not save the state of the datatable?

Methods sort() and markSorting() do not save the state of the datatable.
https://snippet.webix.com/wzbpch67
Clicking on the button “Sort year” sorts the data and marks the title. But the method getState() does not return the sort state (sort is undefined).

Hello, @Natalya

This behavior is the default behavior. It’s not supposed to be stored the state set by API - only by clicking on the header.
To get around this problem, you could expose sorting via state.
Please, check the snippet here: Code Snippet