Index: typo3/class.filelistfoldertree.php =================================================================== --- typo3/class.filelistfoldertree.php (revision 6849) +++ typo3/class.filelistfoldertree.php (working copy) @@ -334,7 +334,7 @@ $hasSub = true; } // Add the root of the mount to ->tree - $this->tree[] = array('HTML' => $firstHtml, 'row' => $row, 'bank' => $this->bank, 'hasSub' => $hasSub); + $this->tree[$val['name']] = array('HTML' => $firstHtml, 'row' => $row, 'bank' => $this->bank, 'hasSub' => $hasSub); // If the mount is expanded, go down: if ($isOpen) @@ -343,6 +343,7 @@ // Add tree: $treeArr = array_merge($treeArr, $this->tree); } + ksort($treeArr); return $this->printTree($treeArr); }