title: Sort array in Swift Ascending with empty items
body: <p>In Xcode (Swift) I have an array that is initialized to 100 empty items:</p>
  
  <pre><code>var persons = [String](count:100, repeatedValue: "")
  </code></pre>
  
  <p>With some functions I add content to the places in the array, starting at 0.</p>
  
  <p>So for example my array is at some given moment:</p>
  
  <pre><code>["Bert", "Daniel", "Claire", "Aaron", "", "", ... ""]
  </code></pre>
  
  <p>With the dots representing the rest of the empty items. I use this function for sorting my array alphabetically:</p>
  
  <pre><code>persons = persons.sorted {$0.localizedCaseInsensitiveCompare($1) == NSComparisonResult.OrderedAscending }
  </code></pre>
  
  <p>This gives me an array back like this: </p>
  
  <pre><code>["", "", ... , "Aaron", "Bert", "Claire", "Daniel"]
  </code></pre>
  
  <p>What I want is to sort my array alphabetically but not with the empty items at the front. I need to get an array back like: </p>
  
  <pre><code>["Aaron", "Bert", "Claire", "Daniel", "", "", ... , ""]
  </code></pre>
  
  <p>For my part, I do not want an array with empty items but I found I couldn't add a value to my array if I did not declare like a 100 items (the array won't be filled to a 100 items, that's for sure).</p>
  
  <p>Can anyone help me out?</p>