title: NSArray of NSDictionaries into NSDictionary of NSArrays
body: <p>I have created an NSDictionary of NSArrays based on a keyValue from the NSDictionaries found in the original NSArray. However I have an issue where the values inside the original NSDictionary are all strings but contain numbers.</p>
  
  <p>The reason this is a problem is because my sorted NSMutableArray looks like this</p>
  
  <pre><code>1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  ... etc
  </code></pre>
  
  <p>the issue being is it gets sorted into the NSDictionary of arrays like this</p>
  
  <pre><code>1
  10
  11
  12
  2
  3
  4
  5
  6
  7
  8
  9
  </code></pre>
  
  <p>I would like to know how to keep the orginal order found in the original NSMutableArray of NSDictionaries?</p>
  
  <p>This is how I am creating the NSDictionary of Arrays.</p>
  
  <pre><code>NSMutableDictionary *sortedDictionaryArraysForTableView = [NSMutableDictionary dictionary];
  
  for (NSDictionary *dict in xmlMArray) {
      NSString *currentNumberString = [dict objectForKey:@"Number"];
      if(![[sortedDictionaryArraysForTableView allKeys] containsObject:currentNumberString])
          sortedDictionaryArraysForTableView[currentNumberString] = [NSMutableArray array];
      [sortedDictionaryArraysForTableView[currentNumberString] addObject:dict];
  }
  </code></pre>