• + 0 comments

    that's because you're not saving the lower case strings in any variables, so it's creating an array of the original strings, not the lower cased ones. Also I would advise against using the sort method as it has a high time complexity.