How to disable default sort behaviour, onBeforeSort not work

I tried this code

		onBeforeSorting: function (ind, type, direction)
		{
			console.log(arguments);
			return false;
		},

but the return false, which should stop default behaviour not working

how to prevent adding dhx_sort to url? and calling the load again?

Please, make sure that you are attaching the event on the client-side:
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html
grid.attachEvent(“onBeforeSorting”, function(ind,type,direction){
//your code here
return false;
});

of course that event is attached,

arguments is logged to console, so there is not problem

unfortunately the problem cannot be reproduced locally.
Could you please, provide with a complete demo, where the issue can be reconstructed.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html