Using Director > Writing Scripts with Lingo > Using lists > Sorting lists

 

Sorting lists

Lists can be unsorted. However, Lingo can sort a list in alphanumeric order, with numbers before strings. Strings are sorted according to their initial letters, regardless of how many characters they contain.

Lingo sorts a linear list according to the values in the list. Lingo sorts a property list according to the properties in the list.

To sort a list:

Use the sort command followed by the list's name. See sort.