adds any user-defined handler for available events
key | string | the property name by which the dataview will be sorted or a custom sorting method |
direction | string | the sorting direction, can take "asc" or "desc" values |
myDataView.sort("#Version#","asc");
myDataView.sort(function(a,b){
return a.Version > b.Version ? 1 : -1;
},"asc");
Back to top