Can I sort across a relation?
Can I sort across a relation?
- Subject: Can I sort across a relation?
- From: Todd Freese <email@hidden>
- Date: Thu, 26 Oct 2006 18:22:18 -0500
Is it possible to have core data sort across a relation? I have two
entities like this: Clip--->SourceListLink
I want to sort Clips based on an attribute in SourceListLink. The
following does not work:
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc]
initWithKey:@"sourceListLinks.sortKey" ascending:YES];
[fetchRequest setSortDescriptors:[NSArray
arrayWithObject:sortDescriptor]];
sourceListLinks is a defined relationship between the Clip entity and
the SourceListLink entity.
Thanks in advance.
Todd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden