Refactor string array sort to avoid xcode warning

When LLVM Objective-C warnings for 'Undeclared Selector' (-Wundeclared-selector) are enabled, line 156 sets it off
```
Creating selector for nonexistant method 'caseInsensitiveCompare:'
```