Added beforeColumnSort and afterColumnSort events fired before and after performing table sorting, as requested in #931.
Handlers for both events receive two arguments:
 * column index
 * order of current sorting.