In normal sorts, sorted alphabetically. Problem: Kazakh letters are not sorted alphabetically.
аәбвгғдеёжзийкқлмнңоөпрстуұүфхһцчшщъыіьэюя
How to solve?
Sort function. All you need is to set up the desired locale:
SORT_LOCALE_STRING - string comparison of elements depending on the current locale. strings, based on the current locale. Added in PHP versions 4.4.0 and 5.0.2, a locale is used, which can be changed using the setlocale () function.
UPD
If it doesn’t fit or doesn’t work, but you need usort .
Source: https://ru.stackoverflow.com/questions/105503/
All Articles