SortListDescendingNumeric

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

Sorts Target in descending numeric order.

Parameters
NameTypeDescription
Target

An expression that evaluates to a list of numbers.

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

    sort tTestList in descending numeric order -- tTestList is [5,4,3,2,1]
Description

Numeric sort is performed by comparing numeric elements by cardinality. *Note:* It is an error if Target contains any elements of non-numeric type.

Tagssorting