SortListAscending

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
sort <Target> [in ascending order]
Associationscom.livecode.sort
Summary

Sorts Target in ascending order.

Parameters
NameTypeDescription
Target

An expression that evaluates to a list.

Example
    variable tTestList as List
	put [4,3,1,5,2] into tTestList

    sort tTestList -- tTestList is [1,2,3,4,5]
Description

Generic sort is performed by comparing the elements of a homogeneous list according to the default comparison function associated to the type of its elements. *Note:* It is an error if Target is not homogeneous, i.e. if it contains any elements of differing type.

Tagssorting