Jump to content

Sort 1D Array function: Difference between revisions

From LabVIEW Wiki
Add new page (stub)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function|icon=Sort 1D Array.png}}
 
The '''Sort 1D Array''' function takes a one-dimensional array and sorts it in ascending order.
[[File:Sort 1D Array - Terminals.png|thumb|Sort 1D Array function]]
[[File:Sort 1D Array - Terminals.png|thumb|Sort 1D Array function]]
{{TOCright}}


{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function}}
== 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 ==
== 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]]'''


== History ==
== History ==
{| class="wikitable"
! Version
! Change(s)
|-
|[[File:LV2020SP1.png|frameless|border|64x64px|LabVIEW 2020|link=LabVIEW 2020]]
| In [[LabVIEW 2020|LabVIEW 2020 SP1]], the '''Sort 1D Array function''' was replaced on the palette with the [[Sort 1D Array VI function|Sort 1D Array VI]].  The '''Sort 1D Array function''' continues to exist but is no longer accessible from the palette.
|}


== See also ==
== See Also ==
{{ambox|text=Add links to internal resources that would also help.}}


== External links ==
== External Links ==
{{ambox|text=Add links to external resources that would also help.}}


[[Category:Array Palette]]
[[Category:Array Palette]]

Latest revision as of 20:55, 8 March 2021

Object information
Owning palette(s) Array palette
Type Function
Requires Basic Development Environment
Icon

The Sort 1D Array function takes a one-dimensional array and sorts it in ascending order.

Sort 1D Array function

Usage

Connect a one-dimensional array to the array input. The output array will be sorted in ascending order.

Best practice

History

Version Change(s)
LabVIEW 2020 In LabVIEW 2020 SP1, the Sort 1D Array function was replaced on the palette with the Sort 1D Array VI. The Sort 1D Array function continues to exist but is no longer accessible from the palette.

See Also

External Links