Maptitude GISDK Help |
Sorts an array of vectors in ascending order, based on the first vector.
Added to Version 6.0/2012.
sort_array = SortVectors(array vecs [, array options])
Argument |
Contents |
vecs |
The array of vectors to be sorted, based on the first vector |
Option |
Type |
Contents |
Omit Missing |
Boolean |
If "True"omits the elements in all the vectors when the first vector has a missing value; if "False" (the default) all elements of all the vectors will be included |
Unique |
Boolean |
If "True" will return the elements where the first vector is unique; the default is "False" |
A new array of vectors, with the elements in each vector sorted based on the first vector.
The options array is an optional argument.
Nulls are sorted to the beginning.
The vectors in the array must be the same length, but can be of different types.
For more information on vectors, see Vectors.
a1 = {3.3, 2.2, 1.1}
a2 = {232,434,211}
v1 = a2v(a1)
v2 = a2v(a2)
vecs = SortVectors({v1,v2},)
ShowArray(vecs)
Function |
Summary |
Copies an array to a vector |
|
Copies a vector to a new vector |
|
Constructs a cumulative vector in a new vector |
|
Sorts the elements of an array |
|
Sorts the elements of a vector in ascending order |
|
Transposes an array of arrays, where element b[i][j] = a[j][i] |
|
Creates a vector |
|
Copies a vector to an array |
©2025 Caliper Corporation | www.caliper.com |