Check documentation for the latest version of dhtmlxSuite sort DHTMLX Docs

sort

adds any user-defined handler for available events

void sort(string key,string direction);
keystringthe property name by which the dataview will be sorted or a custom sorting method
directionstringthe sorting direction, can take "asc" or "desc" values

Example

myDataView.sort("#Version#","asc");
myDataView.sort(function(a,b){
    return a.Version > b.Version ? 1 : -1;
},"asc");

Back to top