Check documentation for the latest version 6.0 of dhtmlxSuite sort DHTMLX Docs

sort

sorts listed options

void sort(string|function mode);

Parameters

modestring|function"asc", "desc", function

Example

// sorting by the native combo method
myCombo.sort("asc");
// or
myCombo.sort("desc");
 
// using a custom user function
myCombo.sort(function(a,b){
    return (a>b?1:-1);
});

Change log

added in version 4.0

Back to top