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);

Parameters

keystringthe property name by which the list will be sorted or a custom sorting method
directionstringthe sorting direction, can take "asc" or "desc" values

Example

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

Back to top