onBeforeSort of ui.rangechart, Events Webix Docs

string/undefinedthe direction of sorting as

Returning false from the event handler will block further processing, and data will not be sorted.

If the third param is a function, the parameters of such a function are the following: