• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sorting a to-many relationship property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting a to-many relationship property


  • Subject: Sorting a to-many relationship property
  • From: Rick Mann <email@hidden>
  • Date: Wed, 16 Jul 2008 17:37:03 -0700

I have a couple entities related by a to-many relationship. Entity Foo can have 0..N of Entity Bar. I have a relationship defined on Foo named "bars". In my code, I build a comma-delimited string of Bars by iterating over the NSArray* returned by Foo.bars.

But they come back in whatever order Core Data has for them. I'd really like for all requests for Foo.bars to come back sorted by a property of Bar. Is this possible? Or must I either create a new property that sorts them, or just sort them after I get them?

TIA,
--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sorting a to-many relationship property
      • From: Keary Suska <email@hidden>
    • Re: Sorting a to-many relationship property
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: MobileMe upload file to iDisk
  • Next by Date: [Moderator] Re: alternative to flash
  • Previous by thread: Type Select Causes Crash ...
  • Next by thread: Re: Sorting a to-many relationship property
  • Index(es):
    • Date
    • Thread