public static function sortTree(Directory $current) {
        $current->sort();
        foreach ($current->getEntries() as $entry) {
            if ($entry instanceof Directory) {
                Builder::sortTree($entry);
            }
        }
    }
public static function sortTree(Directory $current) {
        $current->sort();
        foreach ($current->getEntries() as $entry) {
            if ($entry instanceof Directory) {
                Builder::sortTree($entry);
            }
        }
    }
public static function sortTree ( Directory $ current ) { $ current -> sort ( ) ; foreach ( $ current -> getEntries ( ) as $ entry ) { if ( $ entry instanceof Directory ) { Builder :: sortTree ( $ entry ) ; } } }
Sort the tree recursively

@param Directory $current
Sort the tree recursively