Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sort strings lowercase and uppercase

["Foo", "bar"].sort(Intl.Collator().compare); //["bar", "Foo"]
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #js #sort #strings #lowercase #uppercase
ADD COMMENT
Topic
Name
3+8 =