localeCompare() & Intl.Collator() enable language sensitive string comparison — TL;DR JavaScript native sort method does not work for most of foreign language, which has non-ASCII characters like [‘ą’, ‘ㄱ’, ‘世’, ‘д’, ‘e’] Quick Solution Using localeCompare() Using Intl.Collator() 1. Performance Intl.Collator is better performer than localeCompare Intl.Collator Object and its compare property is better than localeCompare() in terms of…