Herror ::tuple_sort (
    const HTuple &Tuple,
    long *Sorted
)
Herror ::tuple_sort (
    const HTuple &Tuple,
    HTuple *Sorted
)

Sorts the elements of a tuple in ascending order.

::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.


Parameters

Tuple (input_control)
number(-array) -> HTuple.long / double / char *
Input tuple.

Sorted (output_control)
number(-array) -> (HTuple.) long * / double * / char *
Sorted tuple.


Alternatives

::tuple_sort_index, ::tuple_inverse


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH