Comparator for thai word base on thai alpahbet order How it works Based on the first solution of this article Basically this is an js implement of the c code Demo demo Install npm install thai-alphabet-sort or yarn add thai-alphabet-sort