title: Sorting two NSArrays together side by side
body: <p>I have several arrays that need to be sorted side by side.</p>
  
  <p>For example, the first array has names: <code>@[@"Joe", @"Anna", @"Michael", @"Kim"]</code>, and
  and the other array holds addresses: <code>@[@"Hollywood bld", @"Some street 3", @"That other street", @"country road"]</code>, where the arrays' indexes go together. "Joe" lives at "Hollywood bld" and so on.</p>
  
  <p>I would like to sort the names array alphabetically, and then have the address array sorted alongside so they still go together, with "Hollywood bld" having same index as "Joe". I know how to sort one array alphabetical with </p>
  
  <pre><code>NSSortDescriptor *sort=[NSSortDescriptor sortDescriptorWithKey:@"name" ascending:NO];
  [myArray sortUsingDescriptors:[NSArray arrayWithObject:sort]];
  </code></pre>
  
  <p>But is there any easy way of getting the second array sorted using the appropriate order?</p>