title: How to sort an array in Swift
body: <p>I want the Swift version of this code:</p>
  
  <pre><code>NSArray *sortedNames = [names sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
  </code></pre>