sort

sort (TABLE [, COMP])

Sorts TABLE in a given order, in-place, from table[1] to table[n], where n is the result of getn(table). If COMP is given, it must receive wo table elements, and returns true (not nil)when the flrst is less than the second.COMP defaults to the operator <. The sort algorithm is not stable (quicksort is the current algorithm.)