Syntax
Lua |
---|
function ListBox:Sort(sortMethod); |
Parameters
- sortMethod
-
Type:
Object
The function used to sort the elements in the list box.
Remarks
Sorts the elements in the list box using the given sort function. NOTE: The sort method must be consistent in its behavior. If a < b, then a must always be less than b. Failure to follow this rule can cause a client crash.