now i have a list of string with numbers which the string is a thai language like below.
mylist = ['เชียงใหม่_10_เขต', 'เชียงใหม่_1_เขต', 'เชียงใหม่_2_เขต', 'พะเยา', 'ภูเก็ต', 'กรุงเทพ']
And when i sort the list by grammar key with this code...
import pyuca
sort_key = sorted(mylist, key=pyuca.Collator().sort_key)
the character is sorted correctly but the string that have the same character but different number that not sorted by number like the output below.
['กรุงเทพ', 'เชียงใหม่_1_เขต', 'เชียงใหม่_10_เขต', 'เชียงใหม่_2_เขต', 'พะเยา', 'ภูเก็ต']
the output that i want is like this.
['กรุงเทพ', 'เชียงใหม่_1_เขต', 'เชียงใหม่_2_เขต', 'เชียงใหม่_10_เขต', 'พะเยา', 'ภูเก็ต']
So are there any way to do that.