This started as a headache to a migraine to pull out hair.
I'm trying to sort a very big multi-dimensional array, up to 10 dimensions and having a heck of a time getting it to work.
I've tried using usort , creating a compare function and strcmp, but it just ends up being an even bigger mess.
Maybe I am making it more complicated than it really is, or maybe it's just too complicated.
To look at the array, click here
I want to sort everything by "name". I do need the index to stay the same on the first array, and the text index's need to stay the same. All the other index's can be reset.
I don't know, maybe I am asking too much. If so, maybe someone can steer me in the right directions.
I hope that someone out their can understand this.
Thanks so much for your time!