Can I sort across a relation?

  • 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
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today