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