Removes prefixes and sorts by official alphabetic order (yes, you will need a library for this, not .sort())
On the client-side, this library uses Intl.Collator. On the server, it cannot get Intl.Collator from NodeJS or the Intl npm module, so it uses an approximation.
Pass an array of names:
output =;> "ဦးမော" "ဦးလှမြင့်"
Pass an array of objects, and a function to extract the name:
Prefixes from Wikipedia under a Creative Commons license
Open Sourced with an MIT License