sorts listed options
mode | string|function | "asc", "desc", function |
// 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);
});
added in version 4.0
Back to top