Skip to content
ConcordConcordConcord

List:sort

Sorts the List in place, using the order function.

← List

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 )
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.
Name Type Description
list List