faqts : Computers : Programming : Languages : PHP : Common Problems : Arrays

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 12 people (25%) answered Yes
Recently 1 of 9 people (11%) answered Yes

Entry

I have an array var with 7 elements per entry. I seek to sort alphabetically on the 6th element. All examples are key-value/2D sorting. What about 3D?

Aug 30th, 2000 14:44
Rada Eulen, Walter Flaschka, http://www.faqts.com/knowledge-base/view.phtml/aid/2885/fid/416/lang/en,http://www.php.net/manual/function.multisort.php


It seems that the multisort function won't help you because there "the 
input arrays are treated as columns of a table to be sorted by rows", and 
you want them to be treated as rows. But you could still post your 
question on that page, or watch the discussion.