Name
tuple_sorttuple_sortTupleSorttuple_sortTupleSortTupleSort — Sort the elements of a tuple in ascending order.
tuple_sorttuple_sortTupleSorttuple_sortTupleSortTupleSort sorts all elements of TupleTupleTupleTupleTupletuple in ascending order
and returns the result with SortedSortedSortedSortedSortedsorted. As a precondition the
single elements of TupleTupleTupleTupleTupletuple must be comparable. Thus, TupleTupleTupleTupleTupletuple
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_sorttuple_sortTupleSorttuple_sortTupleSortTupleSort,
which can be used in an expression in the following syntax:
Sorted := sort(Tuple)
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on internal data level.
TupleTupleTupleTupleTupletuple (input_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)
Input tuple.
SortedSortedSortedSortedSortedsorted (output_control) number(-array) → HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)
Sorted tuple.
tuple_sort_indextuple_sort_indexTupleSortIndextuple_sort_indexTupleSortIndexTupleSortIndex,
tuple_inversetuple_inverseTupleInversetuple_inverseTupleInverseTupleInverse
Foundation