SortListDescending

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

Sorts Target in descending text order.

Parameters
NameTypeDescription
Target

An expression that evaluates to a list of strings.

Example
   	variable tTestList as List
	put ["a", "b", "c"] into tTestList

    sort tTestList in descending order -- tTestList is ["c", "b", "a"]
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