array_multisort ... unsupported in different builds?
| From: | john | Date: | Sun, 28 Sep 2003 16:12:16 +0000 |
| Subject: | array_multisort ... unsupported in different builds? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164171@lists.php.net to get a copy of this message | ||
ok, heres the thing
short version;
array_multisort works on localhost but when i upload it, ceases to work (array is left unsorted)
long version;
i have array_multisort sorting a multi dimensional array with sort_asc. i understand that it sorts
by the first index by default. on my localhost (iis on xp, php4.3.3) it works perfectly sorting the
whole array based on the first row, but when i upload the code to the online webserver the
array_multisort does nothing. no sorting is taking place, its as though the line is being skipped,
but its not in the middle of an if statement or any other possible means of being skipped logically.
ive tried uploading this on a both a 4.3.3 server and a 4.3.2 with the same result.
i started off with just listing the parts of the array, eg array(something, something else, blah) so
it assigns index numbers. then as part of updating various things i changed that to set the indexes
myself, eg array(indexname => something, index2 =>somethingelse) etc. it was working online
before so ive tried putting just the first row as non-assigned index, and going back to number
indexes for the whole lot, and no dice.
can anyone suggest why this would work fine on my machine and yet cease to function on another
server of the same version? im completely at a loss and p***ed off.
tia
john