I ended up using the sortEnd event and checked for the presence of the .sorted-az and .sorted-za classes to determine the sorted column.
table.bind("sortEnd", function () {
var checkSort = function (query, order) {
var column = table.find(query);
if (column.length == 1){
}
};
checkSort("th.sorted-a-z", "descending");
checkSort("th.sorted-z-a", "ascending");
});
source
share