
December 6th, 2003, 03:11 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: PHP Help Needed
Quote:
Originally posted by Imperator Fyron:
Sorting a normal array is not a problem. I could just call the asort() function if that were the case. The problem is in sorting a 2D array.
|
Yeah, that's what I meant with Multiarray, instead of simple array, my own vocabulary I guess....
How about making a simple 1D array also with only filenamess, and then sort that and let the multiarray (2D) follow in the sorting at the same time;
Define multiarray[1..10][1..10]
filenames_only[1..10]
Sort:
If filename[1]>Filename[2]
{
max=[1]
}
loop it and sort it
{
first filename is filename[max]
first multiarray is multiarray[max]
}
?
[ December 06, 2003, 01:15: Message edited by: Ruatha ]
|