title: iOS sort one array based on order of strings in another array
body: <p>This is another very specific problem I am trying to solve.</p>
  
  <p>I am pulling a list a twitter user accounts logged into the users settings application. This returns an array with the usernames in the correct order. </p>
  
  <p>I then pass this array to this twitter API:</p>
  
  <pre><code>https://api.twitter.com/1.1/users/lookup.json
  </code></pre>
  
  <p>The returned array contain all the additional data I need for each user account logged in. The first array contains NSStrings (usernames), the returned array has been parsed to contain dictionaries that have a key and value for the username, name, and profile pic. </p>
  
  <p>Problem now is that the order is completely different than the first array I passed.. This is expected behavior from Twitter, but it needs to be in the exact same order (I will be referencing the original index of the AccountStore which will match the first array, but not the new array of dictionaries).</p>
  
  <p>How can I tell the new array to match the contained dictionaries to be the same order as the first array based on the username key? </p>
  
  <p>I know this sounds confusing, so let me at least post the data to help.</p>
  
  <p>Here is the first array output:</p>
  
  <pre><code>(
      kbegeman,
      indeedyes,
      soiownabusiness,
      iphonedev4me
  )
  </code></pre>
  
  <p>Here is what the second array outputs:</p>
  
  <pre><code>(
          {
          image = "https://si0.twimg.com/profile_images/3518542448/3d2862eee546894a6b0600713a8de862_normal.jpeg";
          name = "Kyle Begeman";
          "screen_name" = kbegeman;
      },
          {
          image = "https://si0.twimg.com/profile_images/481537542/image_normal.jpg";
          name = "Jane Doe";
          "screen_name" = iPhoneDev4Me;
      },
          {
          image = "https://twimg0-a.akamaihd.net/profile_images/378800000139973355/787498ff5a80a5f45e234b79005f56b5_normal.jpeg";
          name = "John Doe";
          "screen_name" = indeedyes;
      },
          {
          image = "https://si0.twimg.com/sticky/default_profile_images/default_profile_5_normal.png";
          name = "Brad Pitt";
          "screen_name" = soiownabusiness;
      }
  )
  </code></pre>
  
  <p>Due to the way Twitter returns the data, it is never the EXACT same order, so I have to check this every time I call these methods.</p>
  
  <p>Any help would be great, would save my night. Thanks in advance!</p>