sorting multi-dimensional arrays

From: Date: Fri, 16 Jan 2004 17:37:23 +0000
Subject: sorting multi-dimensional arrays
Groups: php.general 
Request: Send a blank email to php-general+get-174852@lists.php.net to get a copy of this message
Hi All, I've read the manual several times on sorting multi-dimensional arrays, but I can't seem to wrap my mind around what I need to do to accomplish my goal. //this is what I'm doing: (stepping through a result set, and putting it into a multi-dimensional array. while ($row = mysql_fetch_array($result)) { $docs[$counter][doc_id] = $row[doc_id]; $docs[$counter][doc_name] = $row[doc_name]; $docs[$counter][clinic_id] = $row[clinic_id]; $docs[$counter][clinic_name] = $row[clinic_name]; $counter++; } //end while //now, I want that array sorted by the clinic_name, and then doc_name. Can someone who has more currently active brain cells than me figure out what the array_multisort function call should look like? Thanks in advance for any help proffered! It is greatly appreciated! Katie Dewees Web Developer E-mail: kdewees@bellsouth.net

« previous php.general (#174852) next »