ILNumerics Ultimate VS

ILMathsort Method (InArrayString, Int32, Boolean)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Sort strings in A along dimension 'dim'

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<string> sort(
	InArray<string> A,
	int dim,
	bool descending
)

Parameters

A
Type: ILNumericsInArrayString
Input array. A may be an empty, scalar, vector or matrix.
dim
Type: SystemInt32
Dimension to sort along
descending
Type: SystemBoolean
Specifies the direction of sorting: true: descending sort direction; false: ascending

Return Value

Type: RetArrayString
Sorted array of the same size/shape as A
Remarks

The strings in A will be sorted lexicographically in ascending order using the bucket sort algorithm. Data along the first non singleton dimension will get sorted independently from data in the other rows/columns.

The sorting order of strings is determined char-wise by comparing the ASCII codes of the characters.

[ILNumerics Computing Engine]

See Also

Reference