private function parseOderPropertyInPalette(ContainerInterface $container)
    {
        foreach ($container->getPropertiesDefinition()->getProperties() as $property) {
            $extra = $property->getExtra();
            if (!isset($extra['orderField'])
                || !$container->getPropertiesDefinition()->hasProperty($extra['orderField'])
            ) {
                continue;
            }

            $orderProperty = $container->getPropertiesDefinition()->getProperty($extra['orderField']);
            if (false === (bool) $orderProperty->getWidgetType()) {
                continue;
            }

            foreach ($container->getPalettesDefinition()->getPalettes() as $palette) {
                foreach ($palette->getLegends() as $legend) {
                    if ((false === $legend->hasProperty($property->getName()))
                        || (true === $legend->hasProperty($orderProperty->getName()))
                    ) {
                        continue;
                    }

                    $paletteProperty      = $legend->getProperty($property->getName());
                    $paletteOrderProperty = new Property($orderProperty->getName());
                    $legend->addProperty($paletteOrderProperty, $paletteProperty);

                    $paletteOrderProperty->setEditableCondition($paletteProperty->getEditableCondition());
                    $visibleCondition = new PropertyTrueCondition($property->getName(), false);
                    $paletteOrderProperty->setVisibleCondition($visibleCondition);
                }
            }
        }
    }