There is an issue while sorting in the spreadsheet view. The data is not uniform while sorting. For reference check this snippet
As a solution, you can attach inner onCommand event and check if the id of the argument of the "sort-asc" or "sort-desc" then call filtering again.
Please take a look at the result: https://snippet.webix.com/yoefl8vo
It looks like you're new here. If you want to get involved, click one of these buttons!