title: how do you select the entry with the max value in coredata?
body: <p>for example, I have a managed object save in coredata like</p>
  
  <p>@interface team : NSManagedObject</p>
  
  <p>@property(nonatomic)NSNumber* teamID;</p>
  
  <p>@end</p>
  
  <p>I have successfully saved some teams with unique teamID in coredata, now I want to get the team with the max teamID, how do I do this?</p>
  
  <p>I used to get all teams and sort them, but this would bring large overhead to make the fetched array, any better idea?</p>