SyntaxFix
Write A Post
Hire A Developer
Questions
I modified @Geuis 's answer by using lambda and convert it upper case first:
people.sort((a, b) => a.toLocaleUpperCase() < b.toLocaleUpperCase() ? -1 : 1);