VECTOR_SORT

Syntax

VECTOR_SORT ( vector_handle, expected_data_type, sort_direction );
Input arguments:
handle vector_handle Vector.
string expected_data_type One of: "int", "float", "string"
int sort_direction One of: DM_ARRAY_SORT_ASCENDING, DM_ARRAY_SORT_DESCENDING

Return Values

Success:
int 0
Failure:
int -1

Description

This function sorts the elements in the given vector according to the expected data type and sorting direction. If the data type of all the elements is not the one specified in the argument list, the vector is not sorted and an error value is returned.