This is a discussion on "Sort a three dimensional array??" within the PHP Forum section. This forum, and the thread "Sort a three dimensional array?? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Sort a three dimensional array??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Sort a three dimensional array??
Hi,
I (will soon) have a some search script that takes coloumns A, B and C of each row from the database that matches multiple search criteria and saves it to an array. For displaying, I need to then take these array entrys and display them sorted by column b then sorted by column c, is this possible?? ie: (1,2,2) (10,3,1) (21,2,1) (30,1,2) needs to be displayed in this order: (30,1,2) (21,2,1) (1,2,2) (10,3,1) Let me know if this makes no sense or more info is required.. Thanks, Nathan. I |
|
|
|
|||
|
Re: Sort a three dimensional array??
|
|
|||
|
Re: Sort a three dimensional array??
Thanks Voodoochilli, thats look like exactly what Im after,
Cheers, Nate. |
![]() |
| Tags |
| array, multi dimension, sort |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multi dimensional array sort by x but randomize where x is equal | nate2099 | PHP Forum | 0 | Jan 21st, 2008 09:17 |
| Sort an array of mixed content | pintofbest | JavaScript Forum | 0 | Nov 23rd, 2006 18:55 |
| Sorting a new array from an existing array | Ozeona | Flash & Multimedia Forum | 2 | Sep 20th, 2005 08:43 |
| array unable to check another array so as to be displayed | Ozeona | Flash & Multimedia Forum | 1 | Aug 5th, 2005 10:26 |
| sort mailbody | si2n | Classic ASP | 8 | Jan 6th, 2004 15:19 |