> //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?

In the documentation, I've found plenty of examples to do a multi-dimensional sort on one column, but not on two at the same time. My advice would be to do this sorting in your SQL statement. "ORDER BY clinic_name, doc_name ASC" would accomplish the same thing. Then, when you're in your while loop, it'll be added to the array in the proper order and you won't have to sort the array.

-Ben

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



Reply via email to