Hi! I'm trying to sort an array with strings containing swedish characters. However, the sort order is wrong.
The following code produces "abäåö" while it should be "abåäö". $list = array("ö", "ä", "a","å","b"); setlocale("LC_ALL","se_SE.ISO8859-1"); usort($list, 'strcoll'); for($i=0;$i<count($list);$i++) { echo $list[$i]; } Any ideas? Running Apache/2.0.43 PHP/4.2.3 Linux 2.4.18 /Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php