Herror ::tuple_sort_index (
    const HTuple &Tuple,
    long *Indices
)
Herror ::tuple_sort_index (
    const HTuple &Tuple,
    HTuple *Indices
)

Sorts the elements of a tuple and returns the indices of the sorted tuple.

::tuple_sort_index sorts all elements of Tuple in ascending order and returns the indices of the elements of the sorted tuple (in relation to the input tuple Tuple) with Indices. 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.

Indices (output_control)
number(-array) -> (HTuple.) long *
Sorted tuple.


Alternatives

::tuple_sort, ::tuple_inverse


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH