private function calculateRootConfig()
    {
        $rootConfig = $this
            ->getEnvironment()
            ->getBaseConfigRegistry()
            ->getBaseConfig()
            ->setSorting($this->getSorting());
        $this->getPanel()->initialize($rootConfig);

        return $rootConfig;
    }