Array sorting by key?

From: Date: Fri, 14 Jul 2000 10:50:23 +0000
Subject: Array sorting by key?
Groups: php.dev 
Request: Send a blank email to php-dev+get-24516@lists.php.net to get a copy of this message
Hmm.. I might just be having one of those days, but... If I had an array in a loop as such... $ourArray[type][$loop] = "a"; $ourArray[name][$loop] = "whatever" Is there any means of sorting the array by a specific key (such as 'name') using the PHP array sort functions, or do I have to resort to using a user defined sort function in conjunction with uasort? If I'm just being thick feel free to let me know. Otherwise, any help would be appreciated. Regards, John Parker.

« previous php.dev (#24516) next »