title: Custom NSSortDescriptors
body: <p>I have an <code>NSFetchedResultsController</code> which I use to fetch my core data and populate a table.</p>
  
  <p>To sort the data currently I am using the code below:</p>
  
  <pre><code>NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"month" ascending:YES];
  NSArray *sortDescriptors = @[sortDescriptor];
  
  [fetchRequest setSortDescriptors:sortDescriptors];
  </code></pre>
  
  <p>month is a <code>NSString</code> of the months of the year and so this currently sorts the months of the year alphabetically.</p>
  
  <p>But what I would like to happen is for the months to be shown in order of closest to todays date.</p>
  
  <p>For example if todays month was April, April would be showed at the top followed by May, June, July etc.</p>
  
  <p>Any help is appreciated, Thanks!</p>