Re: [PHP] multidimensional array sort

2005-03-14 Thread Ashley M. Kirchner
Leif Gregory wrote: http://us3.php.net/manual/en/function.array-multisort.php I did go through that, but I can't get it to work and I'm almost willing to bet it's because of the way the array is built. For example, the example on that page says that I should be able to do a sort on $ar[0] an

Re: [PHP] multidimensional array sort

2005-03-14 Thread Leif Gregory
Hello Ashley, Monday, March 14, 2005, 12:12:19 PM, you wrote: A> I need to do a sort on the whole thing in such a way that: A>a) all the Dir#'s are in ascending order, and A>b) all the User#'s are in ascending order with each Dir#, and A>b) all the File#'s are also in a

[PHP] multidimensional array sort

2005-03-14 Thread Ashley M. Kirchner
I have a multidimensional array that's built as follows (it's pretty much a directory tree): Array ( [Dir1] => Array ( [User1] => Array ( [0] => File1 [1] => File2 ) [User2] => Array { [0] => File1 [1] => File2 [2] => File3 } )