SortListAscendingText

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

Sorts Target in ascending text order.

Parameters
NameTypeDescription
Target

An expression that evaluates to a list of strings.

Example
    variable tTestList as List

	variable tChar
	repeat for each char tChar in "spoilage"
		push tChar onto tTestList
	end repeat

    sort tTestList in ascending text order
    variable tString as String
    combine tTestList with "" into tString -- tString is "aegilops"
Description

Text sort is performed by comparing string elements on a codepoint by codepoint basis. *Note:* It is an error if Target contains any elements of non-string type.

Tagssorting