names = ['~billy','~PennyBreed','~someHelper','+SomeDude','SomeGal','~Abby'];
When I run it, I get following result:
["~Abby","~PennyBreed","~billy","~someHelper","+SomeDude","SomeGal"]
Uppercase goes before lowercase. idk if that is suppose to happen.
Indeed. Switching them toLowerCase() before comparing them fixes this. Snippet updated.
Indeed. Switching them toLowerCase() before comparing them fixes this. Snippet updated.