Sort 1D Array
- Updated2023-02-17
- 2 minute(s) read
Sort 1D Array
Returns a sorted version of an array with the elements arranged in ascending order. If the specified array is an array of clusters, the node sorts the elements by comparing the first elements. If the first elements match, the node compares the second and subsequent elements.

Inputs/Outputs

array
A 1D array of any type.
Data Type Changes on FPGA
When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

sorted array
array sorted in ascending order.
Sorting String Arrays
Sort 1D Array sorts string arrays based on case-sensitivity. For example, if array is {b, C, A}, Sort 1D Array returns {A, C, b} for sorted array.