How to sort 1 array in Swift / Xcode and reorder multiple other arrays by the same keys changes
<p>Sorry for the complex wording of the question. My main experience is with PHP and it has a command called array_multisort. The syntax is below:</p>

<pre><code>bool array_multisort ( array &amp;$array1 [, mixed $array1_sort_order = SORT_ASC [, mixed $array1_sort_flags = SORT_REGULAR [, mixed $... ]]] )
</code></pre>

<p>It lets you sort 1 array and the reorder multiple other arrays based on the key changes in the original.</p>

<p>Is there an equivalent command in Swift / Xcode 7.2?</p>

<p>I have currently have a set of arrays:</p>

<p>FirstName
Age
City
Country
Active</p>

<p>Active is an array of time in seconds that a user has been active within my app. I would like to order that descending or ascending and the other arrays to change to remain consistent.</p>