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 !!!
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...
Message Edited by Darren on 03-22-200603:49 PM
Message Edited by shoneill on 03-23-2006 02:04 PM
Message Edited by shoneill on 03-23-2006 02:05 PM