fires after tasks are sorted in the grid
field | string|function | the name of the column that the grid was sorted by or a custom sorting function |
desc | boolean | optional, the sorting direction: true - descending, false - ascending |
parent | string|number | optional, the id of the parent task, if the tasks were sorted only in the branch of the specified parent |
gantt.attachEvent("onAfterSort",function(field, direction, parent){
// your code here
});