title: Sort an NSArray of strings with custom comparator
body: <p>I have the following array of numbers in strings.</p>
  
  <pre><code>    08,
      03,
      11,
      06,
      01,
      09,
      12,
      07,
      02,
      10
  </code></pre>
  
  <p>And I want it to be: </p>
  
  <pre><code>    06,
      07,
      08,
      09,
      10,
      11,
      12,
      01,
      02,
      03
  </code></pre>
  
  <p>How can I do this? I was thinking of using a custom comparator like this:</p>
  
  <pre><code>NSComparisonResult compare(NSString *numberOne, NSString *numberTwo, void *context) 
  </code></pre>
  
  <p>But never used it before.</p>
  
  <p>any help?</p>
  
  <p>Kind regards</p>
  
  <p><em><strong>EDIT</em></strong></p>
  
  <p>Oké so at the moment I did this.</p>
  
  <pre><code>   NSArray *unsortedKeys = [self.sectionedKalender allKeys];
  
      NSMutableArray *sortedKeys = [[NSMutableArray alloc]initWithArray:[unsortedKeys sortedArrayUsingSelector:@selector(localizedCompare:)]];
  </code></pre>
  
  <p>This sorts the array from 01 --> 12. These numbers represent my months in my tableview. At the moment is starts in Januari and stops in December. What I want now is that is starts in June and ends in march. </p>
  
  <p>Hope this clears the question a little bit.</p>