Index: typo3/class.filelistfoldertree.php =================================================================== --- typo3/class.filelistfoldertree.php (revision 6849) +++ typo3/class.filelistfoldertree.php (working copy) @@ -290,7 +290,16 @@ // Init done: $titleLen = intval($this->BE_USER->uc['titleLen']); $treeArr = array(); + $mountSortKey = 'name'; + // sort mounts by key "name" + uasort($this->MOUNTS, create_function('$a, $b','\'' . $mountSortKey . '\'; + if( ($c = strcasecmp($a[\'' . $mountSortKey . '\'], $b[\'' . $mountSortKey . '\'])) !== 0 ) { + return($c); + } + return($c); ') + ); + // Traverse mounts: foreach($this->MOUNTS as $key => $val) { $hasSub = false;