LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
safar

array sort

Status: Duplicate

sport the direction of array sort incresing or decsrising 

7 Comments
tst
Knight of NI Knight of NI
Knight of NI

Just add a Reverse 1D Array after the sort.

 

Also, this has already been suggested - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/In-quot-Sort-1D-array-quot-node-uses-can-get-both-asce...

 

And, OpenG has a sort VI which has that input.


___________________
Try to take over the world!
safar
Member

but reverse array used the same size of array from memory  

tst
Knight of NI Knight of NI
Knight of NI

Did you read the other thread?

 

Also, any comments you have, post there. This idea is a duplicate.


___________________
Try to take over the world!
AristosQueue (NI)
NI Employee (retired)

> but reverse array used the same size of array from memory 

 

No, it doesn't. See the other thread for details.

Laura F.
Active Participant
Status changed to: Duplicate
 
safar
Member

my fisrt idea is is sort arry function hase anther input which is a (incresing or decrising) and i dont see the realtion this with other thread some time i have a big about 10000 elemnets array of big structure about 2K each structure  when i sortrit and reverse the result ,

x bytes of data size of array , anther x size of sorted array and finlay anther x size of reverse array that mean LabVIEW in this case used  3 times size of array

Intaris
Proven Zealot

@safar.  Incorrect assumptions in your post.

 

Please read the thread linked to previously.  Reverse Array is an in-place operation which creates no copies.  I think sort is also an in-place operationmeaning it creates no copies.

 

Of course if you program so that YOU are making copies of the arrays than it might be problematic but AFAIK the LabVIEW primitives are fine as they are.