Sort by letters (Kazakh alphabet)

Sorted alphabetically automatically in regular sorts. Problem: Kazakh letters are not sorted alphabetically.


How to decide?

Answer 1, authority 100%

Function sort. All you need to do is set up the desired locale:

comparison of elements depending on
current locale. strings, based on the
current locale. Added in versions
PHP 4.4.0 and 5.0.2, used
locale, which can be changed from
using the setlocale() function.


If it doesn’t fit or doesn’t work, you should usort.

Leave a reply

Please enter your comment!
Please enter your name here