Re: sorting in array
| From: | David Tulloh | Date: | Mon, 31 Jul 2006 10:35:43 +0000 |
| Subject: | Re: sorting in array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239902@lists.php.net to get a copy of this message | ||
weetat wrote:
> Hi all ,
>
> I have array value as shown below, i have paste my test php code below:
> I have problem when doing usort() when 'country' = '', i would like to
> display records where country = '' last. Any ideas how to do that ?
> ...
You might try searching the list's archive's. This question has been
asked and answered several times before.
http://aspn.activestate.com/ASPN/Mail/Message/php-general/3172783
http://aspn.activestate.com/ASPN/Mail/Message/php-general/3199536
http://aspn.activestate.com/ASPN/Mail/Message/php-general/3212898
one of the solutions offered:
http://aspn.activestate.com/ASPN/Mail/Message/3172873