fix sorting order by dhatu
Closed this issue · 1 comments
vipranarayan14 commented
Current sort order by dhatu:
- अकि (अकि) लक्षण
- अकिँ॒ (अक्) लक्षण
- अकँ (अक्) कुटिलायां_गतौ
But should be:
- अकँ (अक्) कुटिलायां_गतौ
- अकि (अकि) लक्षण
- अकिँ॒ (अक्) लक्षण
Fix:
- Use sorter from here: https://anubhav-chattoraj.github.io/indic-tools/devanagari_sorter/
- Or use any other algos discussed here: https://groups.google.com/g/sanskrit-programmers/c/HTyINaNbvUQ
vipranarayan14 commented
The problem is, the list is sorted using the dhatu
field but it was expected to be sorted using muladhatu
field.
Changing to muladhatu
should fix it.