Given an array of strings, sort the array in ascending order, case insensitive.
// input:
const a = ['cherry', 'apple', 'Cherry', 'Apple', 'Orange', 'Pear']
// output:
[ 'apple', 'Apple', 'cherry', 'Cherry', 'Orange', 'Pear' ]
(Ctrl + ')
Loading...
/* output */
Next(Ctrl + y)