title: Swift sort an array with strings and numbers
body: <p>I have an array of strings, </p>
  
  <pre><code>let array = [ "10", "1", "101", "NA", "100", "20", "210", "200", "NA", "7" ]
  </code></pre>
  
  <p>I would like to get the output sorted in ascending as,</p>
  
  <pre><code>let sorted = [ "1", "7", "10", "20", "100", "101", "200", "210", "NA", "NA" ]
  </code></pre>
  
  <p>I tried using the sorted command but it does not work when it encounters more than 2 digits e.g.: 100, 101, 200 etc.</p>
  
  <pre><code>array.sorted { $0? &lt; $1? }
  </code></pre>
  
  <p>What would be the simple way to get this?</p>