List:sort
Sorts the List in place, using the order function.
Sorts the List in place, using the order function.
The order function is passed to table.sort internally so documentation on table.sort can be used as reference.
list = list:sort( order )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
order |
fun(a: any, b: any): boolean | Function that takes two items (a and b) and returns true if a should go before b. |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
list |
List |