Notes
Package reference:
The pythainlp.collation contains a function that sorts Thai text alphabetically
pythainlp.collation
pythainlp.collation.
collation
data (list) – a list of thai text
a list of thai text, sorted alphabetically
>>> from pythainlp.collation import * >>> collation(['ไก่', 'เป็ด', 'หมู', 'วัว']) ['ไก่', 'เป็ด', 'วัว', 'หมู']