diff --git a/.devilbox/www/htdocs/vhosts.php b/.devilbox/www/htdocs/vhosts.php index 0a82b78f..937d5a75 100644 --- a/.devilbox/www/htdocs/vhosts.php +++ b/.devilbox/www/htdocs/vhosts.php @@ -26,7 +26,7 @@ DocumentRoot Valid URL - + _is_valid_dir($docRoot . DIRECTORY_SEPARATOR . $directory) && $directory != '.' && $directory != '..') { - $vhosts[] = array( + $vhosts[$directory] = array( 'name' => $directory, 'domain' => $directory .'.' . $this->getTldSuffix(), 'href' => 'http://' . $directory . '.' . $this->getTldSuffix() @@ -73,6 +73,9 @@ class Httpd extends BaseClass implements BaseInterface } } } + + ksort($vhosts); + return $vhosts; }