So right now if you want to sort a data table you can give the column a sortBy attribute and when you click the header it will sort by whatever that attribute is.
Is there a way in which I can call my own custom function instead when you click the header?
You can bind a handler to all of the column headers of a data table with the following script.