logo
Search
showing results for - "javascript intl collator"
Maya
29 Aug 2019
1console.log(['b', 'a', 'z', 'ä'].sort(new Intl.Collator('de').compare));
2console.log(['b', 'a', 'z', 'ä'].sort(new Intl.Collator('sv').compare));
3
4// ['a', 'ä', 'b', 'z']
5// ['a', 'b', 'z', 'ä']
source
similar questions
nullish coalescing jsjavascript set color in hexjavascript colorcoercion javascriptconvert hsl to hex code javascriptcolor picker in jsdecimal parse thousand separator javascriptformat money javascript commasconvert arrow function to normal function javascript onlinejs constructor syntaxjavascript change colorjavascript cuncurrencyjs invert colorjavascript double exclamation markfunciones invocan a funciones javascriptjava script or js circle collisionjavascript change table row color based on valueconstructors javascriptmoney separator in javascriptjavascript color green to redjavascript canvas gamma correction
queries leading to this page
intl collatorintl collatorjavascript intl collator
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue