onAfterSort

fires after sorting dataset

void onAfterSort(string/function/undefined by,string/undefined dir,string/function as);
by
string/function/undefinedtemplate of sort-by field dir
string/undefineddirection of sorting as
string/functiontype of sorting

Example

view.data.attachEvent("onAfterSort", function(by, dir, as){
    //... some code here ... 
});

Details

If the third param is a function, the parameters of such a function are the following:

table.sort("#fieldName#", "desc", function(a, b, prop) {
   return a[prop] - b[prop];
})
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.