Skip to main content

SortListDescending

Type​

statement

Summary​

Sorts Target in descending text order.

Syntax​

sort <Target> in descending order

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.

Parameters​

NameTypeDescription

Target

An expression that evaluates to a list of strings.

Examples​

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

sort tTestList in descending order -- tTestList is ["c", "b", "a"]
Thank you for your feedback!

Was this page helpful?