Ok, I agree. I think that original statement was confusing. What I
was trying to say is that if you decide to sort by the array element
that original key will not necessarily be sorted (this is really
obvious since you aren't actually sorting by the key and is just a
stupid thing to make a point out of, actually).
You have to STOP thinking in terms of the whole thing when working
with nested arrays. The container, the "outer" array, holds the
references to the first level, thats it! The reason thats so
important is that the outer (container) level gets you "access"
to the inner level data that was the OBJECT of your sort.
After a several inner layer sort, the container contains the
"access" order of the inner data. All you have to do is sequentially
use the outer references to print the inner dataa that was the
OBJECT of the sort. Everytime you sort inner data, what you are
changing is the container, NOT the inner data containers.
The container is a single dimentioned array, a 1x10 or 1x20
of references, and is the result of the sort. NO data has
changed anywhere else.
Hope this helps.....
And your driveing youself nuts with notation like:
$v{$ttt}{$xxx}, don't use that notation!