Help with onSort please

Hi I’m new to Servoy and have what I hope is a basic question.

I’ve created a very simple table view form with just one field on it. I’ve then attached a global method to the forms onSort. This all runs fine until you have unsaved changes, then pressing the column header does nothing!! My onSort code is checking for unsaved changes so why can’t I get the method to run?

Any help would be appreciated.
Caroline

this is currently by design
Because if you sort you can loose all kind of stuff, for example new records can be lost, or updated records can be because of the sort fall completely of the radar and so on.