Sort Array Alphanumerically Swift3
<p>I have a function I was using in Xcode 8 Beta, which sorted an array alphabetically then numerically. </p>

<p>The function I used was:</p>

<pre><code>func sortArray(arrayToSort: [String])-&gt;[String]{

let sortedArray = arrayToSort.sorted {
(first, second) in
first.compare(second, options: .numericSearch) == ComparisonResult.orderedAscending
}
   print(sortedArray)
   return sortedArray
}
</code></pre>

<p>However this doesnt work anymore. Does anyone had any idea how I can do this in Swift 3?</p>