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: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to