private function initWithParentOrder($path, array $parentReferences) { foreach ($parentReferences as $parentPath => $_) { // Look for the first parent entry for which an order is defined if (isset($this->json['_order'][$parentPath])) { // Inherit that order $this->json['_order'][$path] = $this->json['_order'][$parentPath]; return; } } }