05-29-2008 09:01 AM
06-02-2008 12:26 PM
Use a for loop to combine all the quantities of interest into a cluster, with the sorting variable as the first item in the cluster. Autoindex the cluster out of the for loop to create a cluster array. Sort the cluster array using sort 1D array, then retrieve the information that you need.
Bruce
06-02-2008 01:20 PM
06-02-2008 02:40 PM
The sorting variable is always the first item in the cluster. When you sort an array of clusters, it sorts by the first item in the cluster. If there are two identical values in the first item, it sorts by the second item, and so on.
When you build your cluster, you want to put the items into the cluster in the sequence that you want to sort them by. For example, if I was sorting names, I would put the last name as the first item in the cluster, then the first name, then any other information I want to keep with the name when I sort it, such as phone number, address, etc.
Bruce
06-03-2008 10:19 AM
Bruce,
Thank you very much for the assistance. This allowed me to accomplish exactly what I needed to.
Best Regards,
Chris