fires before sorting of the dataset
by | string/function | the template of the sort-by field |
dir | string | the direction of sorting |
as | string/function | the type of sorting |
boolean | returning false will prevent sorting |
view.data.attachEvent("onBeforeSort", function(by, dir, as){
//... some code here ...
});
Returning false from the event handler will block further processing, and data will not be sorted.