Sort 1D Array function: Difference between revisions
Appearance
Add new page (stub) |
Add content |
||
| Line 1: | Line 1: | ||
[[File:Sort 1D Array - Terminals.png|thumb|Sort 1D Array function]] | [[File:Sort 1D Array - Terminals.png|thumb|Sort 1D Array function]] | ||
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}} | {{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}} | ||
The '''Sort 1D Array''' function takes a one-dimensional array and sorts it in ascending order. | |||
== Usage == | == Usage == | ||
Connect a one-dimensional array to the '''array''' input. The output array will be sorted in ascending order. | |||
[[File:Sort 1D Array - Numeric.png]] | |||
== | == Best practice == | ||
* To sort an array in descending order connect the output of '''Sort 1D Array''' to '''[[Reverse 1D Array function|Reverse 1D Array]]'''. | |||
* For two-dimensional arrays use '''[[Sort 2D Array function|Sort 2D Array]]''' | |||
[[Category:Array Palette]] | [[Category:Array Palette]] | ||
Revision as of 21:37, 15 November 2019

| Object information | |
|---|---|
| Owning palette(s) | Array palette |
| Type | Function |
| Requires | Basic Development Environment |
The Sort 1D Array function takes a one-dimensional array and sorts it in ascending order.
Usage
Connect a one-dimensional array to the array input. The output array will be sorted in ascending order.
Best practice
- To sort an array in descending order connect the output of Sort 1D Array to Reverse 1D Array.
- For two-dimensional arrays use Sort 2D Array
