note 15074 added to function.sort.php
| From: | RunMaster at gmx dot de | Date: | Mon, 27 Aug 2001 10:56:03 +0000 |
| Subject: | note 15074 added to function.sort.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17183@lists.php.net to get a copy of this message | ||
E ~ É topic
sort() sorts in ASCII where É is higher than E (even as Z) so there is no way without a workaround.
My suggestion is to try out the following:
str_replace() all the É and other special chars with an E or any similar fitting char and an
identification string just like ++, which should not appear in any of the strings used in the array
("E++somethingelseinfrench").
sort() your array and str_replace() its elements again, this time replace E++ with É.
This should bring all your És just after E, before F...
This is not the best solution, but should help a bit.
http://www.php.net/manual/en/function.sort.php