MODE-2385 Fixed the handling of the order for multi-valued reference properties.