Re: sort(ing)
| From: | Andrei Zmievski | Date: | Fri, 07 Jul 2000 01:11:58 +0000 |
| Subject: | Re: sort(ing) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5298@lists.php.net to get a copy of this message | ||
At 04:19 PM 7/6/00 -0700, Ed Vul wrote:
>You must have misunderstood me... these are in an array, and sort() sorts
>them in the manner of:
>1,123,34,45,457,5,9
>I think it is intended for alphabetical sorting...
>is there some numerical sorting function?
Yes, almost all sort functions now take the second argument which specifies
the sort order:
SORT_REGULAR
SORT_NUMERIC
SORT_STRING
-Andrei