Page 1 of 1

sorts function

Posted: Fri Jun 13, 2003 9:03 am
by matteo
When I use sorts functions seems not to work with ucase letter. For example:

Frank
william
bibo

sort function result are:
bibo
william
Frank

and not like i would:
bibo
Frank
william

Posted: Fri Jun 13, 2003 11:04 am
by hedge
It is doing an ASCII sort where uppercase appear in the character set first, you will probably want to do a case-insensitive search.

Posted: Fri Jun 13, 2003 4:08 pm
by delorian
The function natcasesort() should do the trick :D

http://php.net/manual/en/function.natcasesort.php