NSOrderedSet support

Ordered relationship support, including resolving conflicts based on sorting by the globalIdentifier for consistent ordering across devices.