You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pozitron57 I should probably give an example: In Swedish å, ä, and ö comes after z in the alphabet. In German äand ö comes before (there is no å). There are thousands of examples where sorting depends on language and/or locale. localeCompare is a native string method making localized sorting possible, that has very good browser support: https://caniuse.com/#search=localeCompare (Hey, even IE6 has at least some basic support!)
Very nice one! Would it somehow be possible to use
localeCompare
in the quicksort algorithm, so that we can use it on other languages than English?The text was updated successfully, but these errors were encountered: