I've tried to search in many threads here and over google, but nothing worked for me... I have to sort string array, which contains strings with czech (utf8) characters, like [a,b,z,č,v,ř] I am using setLocale and usort, but I also tried classic sort, asort etc...
Here is code I am using right now (but not working..) Thanks for any help!
$sortDocTypes = function ($a, $b) {
SetLocale(LC_ALL, "cs_CZ");
return strcoll($a, $b);
};
usort($generatedDocumentList, $sortDocTypes);