The code below works for sorting an array of strings if they are all lowercase or all uppercase but I want to ignore case when I sort. How could I do this? The following is
You can convert the String to lowercase and then compare it:
String
array.sort{ $0.lowercaseString < $1.lowercaseString }