OK, typically when finally biting the dust and asking for help the answer comes falling down from above...
I figured out that a simple : sort($stats_unsorted); This would infact sort the first field of the subarrays. This would mean by throwing the results back and forth between several arrays I would in the end be able to sort whatever I would need. I could also insert back into the SQL and sort it by a select statement, but I feel Arrays are there for a reason, and there should not be any reason to bother the SQL for such a trivial thing as sorting. If any of you have another sollution I would sure love to know it, since my array infact is multidimensional, and the sort() isnt, though it for some reason solved the problem aslong as Im sorting the first field. -- Kim Steinhaug --------------------------------------------------------------- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php