Quote:
Originally Posted by xuanhuy238
Sorting fuction seems to be work but some characters in Vietnamese was sorted not correctly.
Now: A - B - C .. - Z - ? - ? - 1 - 2 - 3 (???)
Correct (in vietnamese): 1 - 2 - 3 - A - ? - ? (or ? Ạ ? Ả) - B - C ... - Z
|
I just found out about this... setlocale(LC_COLLATE, 'English');
If used with Vietnamese instead of English it may fix the sorting
Reference:
http://www.w3schools.com/php/func_string_setlocale.asp