Table

table.sort

Sorts list elements in a given order, *in place*, from list[1] to list[#list].

Syntax

sort(list: table [, comp: (a, b)  returns  boolean])