@fsdolphin https://www.youtube.com/watch?v=Rh05puZsh6o&t=529s is an example of how to manage manual sort order locally. (each item basically has a arrayPosition field) When adding CloudKit, I am not sure how to handle conflicts.
Example:
On the first device, move "Item 1" to the back: "Item 2" (sortOrder = 0), "Item 3" (sortOrder = 1), "Item 1" (sortOrder = 2)
On the second device, move "Item 3" to the front: "Item 3" (sortOrder = 0), "Item 1" (sortOrder = 1), "Item 2" (sortOrder = 2)
When syncing, the result should be: "Item 3", "Item 2", "Item 1" as if the move operations where done in chronological order
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: