tuple_sort🔗
Short description🔗
tuple_sort — Sort the elements of a tuple in ascending order.
Signature🔗
tuple_sort( tuple Tuple, out tuple Sorted )
Description🔗
tuple_sort sorts all elements of Tuple in ascending order
and returns the result with Sorted. As a precondition the
single elements of Tuple must be comparable. Thus, Tuple
must either exclusively consist of strings or it must only contain
(integer or floating point) numbers. In the latter case integers and
floating point numbers may be mixed.
Exception: Empty input tuple🔗
If the input tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation🔗
HDevelop provides an in-line operation for tuple_sort,
which can be used in an expression in the following syntax:
Sorted := sort(Tuple)
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Automatically parallelized on internal data level.
Parameters🔗
Tuple (input_control) tuple(-array) → (integer / real / string)
Input tuple.
Sorted (output_control) tuple(-array) → (integer / real / string)
Sorted tuple.
Combinations with other operators🔗
Module🔗
Foundation