In my CoreData model I have a to-many-relation defined. I like to sort the items in the relation by a date property and to migrate to a NSOrderedSet.
Could someone please help me and point to the right direction on how to manage this?
After looking more around on this issue it turned out,
that coredata lightweight migration is fully capable to turn a NSSet based relation to a NSOrderedSet based relation.
After migration all items in the NSOrderedSet based relation are in arbitrary order.
To bring the data objects into right order a post migration step is necessary, which will only be executed once after the migration process.
I found a good example on how to do this in the WWDC 2010 Session "Mastering Core Data" at the very end of the video (51:50).