Event name is case insensitive.
This event calls user-defined handlers (if there are any) and passes the following parameters:
chart.attachEvent("onAfterSort", function (by, dir, as){ //any custom logic here });