03-22-2006 03:18 PM
03-22-2006 03:22 PM
03-22-2006 03:25 PM
03-22-2006 03:44 PM
Hello,
Thanks for your reply. The "Sort array using reference" doesn't support the sorting of 1D array of cluster elements, based on 2nd element.
I will restate my question : --------------
Each Cluster Point (XY Point Coordinate values) in 1D array consist of --- X and Y value. X is the first value and Y is the second value in a cluster. I need to sort the 1D array using Y-value. The available "Sort 1D array" function in labview supports sorting using first element of the cluster (i.e. X-value) which I can't use for given problem. Any suggestions !!!
Manu
03-22-2006 03:49 PM - edited 03-22-2006 03:49 PM
Hello,
Here is a simple trick you can do to sort a cluster array by any element of the cluster:
Just unbundle the element you want to sort by, bundle this with the original cluster itself, do a sort, then unbundle out the original cluster elements. Works every time... 🙂
-D
Message Edited by Darren on 03-22-200603:49 PM
03-22-2006 03:59 PM - edited 03-22-2006 03:59 PM
Message Edited by altenbach on 03-22-200602:01 PM
03-22-2006 04:18 PM
03-23-2006 07:01 AM - edited 03-23-2006 07:01 AM
Message Edited by shoneill on 03-23-2006 02:04 PM
Message Edited by shoneill on 03-23-2006 02:05 PM
03-23-2006 09:14 AM
03-23-2006 09:38 AM