The latest version wins. This means that if you edit one item on two devices, and sync them later, the information from the device that’s synced last will override the device that was synced first. This is how most sync services operate since it’s impossible to figure out your true intentions. So the best strategy is to always keep your devices synced before making changes.