阅读背景:

核心数据,对一对多子对象进行排序

来源:互联网 

So, lets say I have a store of parents children and the parent has a one to many relationship to children (parent.children) and they all have first names. Now, on the initial fetch for parents I can specify a sort descriptor to get them back in order of first name but how can I request the children in order? If I do a [parent.children allObjects] it just gives them back in a jumble and I'd have to sort after the fact, every time.So, lets say I have a store of parents children




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: