OTX Reference  
OpenTestSystem.Otx.Extensions.Util.Terms.ListSort Class Reference

ListSort is a ListTerm that returns a copy of the given list in ascending order. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Util.Terms.ListSort:
Inheritance graph

Public Attributes

ListTerm list
 Cardinality [1]
The List from which the sorted list shall be created. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

ListSort is a ListTerm that returns a copy of the given list in ascending order.

The ListSort activity is a ListTerm that returns a copy of the given list in ascending order. The comparison criterion is the same as used by the otx: Relational operations description.

The order of equal values (e.g. for quantities 1000 m and 1 km) after the sorting is not specified.

Checker rules
CheckerRule.Util_Chk001 - For the ListSort term the item type of the list shall be of SimpleType

Syntax
ListTerm = Util.ListSort(ListTerm list);
ListTerm list
Cardinality [1] The List from which the sorted list shall be created.
Definition: Util.cs:219
Examples
// Local Declarations
List<Integer> List1;
// Flow
// Result: List1 = {0, 2, 3, 4, 5, 6, 7, 8, 9, 10}
List1 = Util.ListSort({9, 3, 2, 0, 10, 4, 6, 8, 5, 7});

Member Data Documentation

◆ list

ListTerm OpenTestSystem.Otx.Extensions.Util.Terms.ListSort.list

Cardinality [1]
The List from which the sorted list shall be created.