Re: Array Sort?
| From: | David Robley | Date: | Tue, 10 Apr 2001 00:47:04 +0000 |
| Subject: | Re: Array Sort? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47906@lists.php.net to get a copy of this message | ||
On Fri, 6 Apr 2001 18:33, Chris Anderson wrote:
> Currently I am using the sort() command to sort an array. Unfortunately
> it uses the ascii number so all words starting with uppercase are
> before lowercase. Is there a case insensitive alphabetical sort that I
> don't know of? Thanks in advance ^_^
You might have to use usort and build a little case-insensitive sort
routine yourself. Remember that ASCII A + 32 = ASCII a and so forth.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA