fires before sorting dataset
by | string|function | template of sort-by field |
dir | string | direction of sorting |
as | string|function | type of sorting |
boolean | returning false will prevent sorting |
some.attachEvent("onBeforeSort", function(by, dir, as){
//... some code here ...
//return false to block operation
return true;
});