| Maptitude GISDK Help |
Sorts the elements of a vector in ascending order.
Added to Version 6.0/2012.
sort_vec = SortVector(vector vec [, array options])
| Argument | Contents |
|---|---|
| vec | The vector to be sorted |
| Option | Type | Contents |
|---|---|---|
| Omit Missing | Boolean | If "True" missing values will not be included in the returned vector; if "False" (the default) missing values will be included |
| Unique | Boolean | If "True" will return a list of unique values; the default is "False" |
A new vector with the elements sorted in ascending order.
The options array is an optional argument.
Nulls are sorted to the beginning.
For more information on vectors, see Vectors.
| GISDK Function | Summary |
|---|---|
| ArrayToVector() | Copies an array to a vector |
| CopyVector() | Copies a vector to a new vector |
| CumulativeVector() | Constructs a cumulative vector in a new vector |
| ConcatenateVectors() | Concatenates vectors into one, combined long vector |
| GetDataVector() | Creates a vector from a field in a view|set |
| GetDataVectors() | Creates vectors from fields in a view|set |
| SetDataVector() | Fills values into a field in a view|set from a vector |
| SetDataVectors() | Fills values into fields in a view|set from vectors |
| SortVectors() | Sorts an array of vectors in ascending order, based on the first vector |
| TransposeArray() | Transposes an array of arrays, where element b[i][j] = a[j][i] |
| Vector() | Creates a vector |
| VectorStatistic() | Computes a given statistic for the vector |
| VectorToArray() | Copies a vector to an array |
| ©2025 Caliper Corporation | www.caliper.com |