title: Sort NSFetchRequest by date and then by alphabetical order
body: <p>I want to order a <code>NSFetchRequest</code> first by date and then, if it matches the same day order by name.
  I use a <code>UIDatePicker</code> to get the date and the save it using Core Data</p>
  
  <pre><code>[self.managedObject setValue:self.datePicker.date forKey:self.keypath];
  </code></pre>
  
  <p>and sort the <code>NSFetchRequest</code> like this:</p>
  
  <pre><code>NSSortDescriptor *sortDescriptor1 = [[NSSortDescriptor alloc] initWithKey:@"day" ascending:NO];
  NSSortDescriptor *sortDescriptor2 = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:NO];
  NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor1, sortDescriptor2, nil];
  [fetchRequest setSortDescriptors:sortDescriptors];
  </code></pre>
  
  <p>Now my problem is that it only be ordered by date and not by name because the <code>UIDatePicker</code> stored in Core Data the date but also the hour.  So even if the same day, not sorted by "name" in that same day because the hour is different.
  So how do I save in core data only the date mm/dd/yyyy and not de hour from a <code>UIDatePicker</code>?</p>
  
  <p>Or do you think of any other solution?</p>