private function sortPaths()
    {
        $this->normalizePaths();

        uasort($this->paths, function ($a, $b) {
            if ($a == $b) {
                return 0;
            }

            return (substr_count($a['path'], DIRECTORY_SEPARATOR) >
                substr_count($b['path'], DIRECTORY_SEPARATOR)) ? -1 : 1;
        });

        return $this->paths;
    }