I am developing an iOS app with Core Data. The app grabs data from the server and updates CoreData. The records in the database are updated/sort order on the server. What is the best solution to preserve the sort order on the client?
Is storing the sort order in another column the best solution? This data is go开发者_高级运维ing to be changing on the server.
CoreData (currently) does not preserve sort order. If there's a natural sort ordering (i.e. by name, date, etc.) you do it on fetch, otherwise you'll need to add the ordering ("index") to your object model.
Note: this may not be the case in near the future. hint, hint
精彩评论