03-20-2006 04:21 PM
03-20-2006 04:34 PM
Arrays are sorted by their indices by definition, right?! 😉
Can you explain in a few more words what you are trying to do? Maybe give an example?
03-21-2006 02:57 AM
03-21-2006 12:44 PM
03-21-2006 01:15 PM
The easiest way to do this would be to create a cluster, where the first element in the cluster is the element from the 3D array you want to sort by, and the second element is the entire page associated with that sorting element. Then wire this cluster into the Sort 1D Array function. Take the sorted output and unbundle the pages in a loop, and rebuild them into the 3D array. This trick is possible because the Sort 1D Array function allows you to sort a cluster array based on the first element in the cluster.
-D
03-21-2006 02:07 PM
03-21-2006 02:14 PM
04-29-2013 04:13 PM
Many thanks. That is what I am looking for.
xg
04-29-2013 05:42 PM - edited 04-29-2013 05:43 PM
Wow, this is an old thread!!! 😮
Since my code example above has just been kudoed, I am taking the liberty to refresh the code a little bit. I believe it is more memory efficient to NOT drag the entire 3D array through the sorting mechanism, especically if large 3D arrays are involved. Here's what I would do today instead (same result!)
04-30-2013 05:04 AM
thanks for the update. great!! I will have a go