Multisorting an array

From: Date: Mon, 17 Feb 2003 15:25:57 +0000
Subject: Multisorting an array
Groups: php.general php.general 
Request: Send a blank email to php-general+get-135838@lists.php.net to get a copy of this message
I have an array with the following structure: Array ( [0] => Array ( [name] => images [type] => dir ) [1] => Array ( [name] => includes [type] => dir ) [2] => Array ( [name] => index.php [type] => file ) [3] => Array ( [name] => index.tpl.php [type] => file ) [4] => Array ( [name] => lib [type] => dir ) } I want to array_multisort this array so it becomes sorted by type first, and then by name. What are the arguments for the function in this case? Joachim

« previous php.general (#135838) next »