Reputation: 517
I have a database in core data that needs to group items according to their type. Because of that i cant add a item at the end. I need to insert it to a specific index. Can you please tell me how to insert a new record at index x and moving the old index x to index x+1 and so on. Or is there a way to sort the record descending acording to parameter y ?
Thank you
Upvotes: 2
Views: 137
Reputation: 119041
Any concept of order is created by you using an ordering
attribute(s) on your entity. It's also entirely up to you to update / maintain that ordering information (and to use it when fetching / processing fetched results).
Upvotes: 2