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;
            }
        }
    }
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;
            }
        }
    }
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 ; } } }
Initializes a path with the order of the closest parent path.

@param string $path             The path to initialize.
@param array  $parentReferences The defined references for parent paths,
with long paths /a/b sorted before short
paths /a.
Initializes a path with the order of the closest parent path .