Index: typo3/class.webpagetree.php =================================================================== --- typo3/class.webpagetree.php (revision 6849) +++ typo3/class.webpagetree.php (working copy) @@ -375,7 +375,7 @@ $uid = $rootRec['uid']; // Add the root of the mount to ->tree - $this->tree[] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000); + $this->tree[$rootRec['crdate']] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000); // If the mount is expanded, go down: if ($isOpen) { @@ -384,6 +384,7 @@ $this->getTree($uid, 999, '', $rootRec['_SUBCSSCLASS']); } // Add tree: + ksort($treeArr); $treeArr=array_merge($treeArr,$this->tree); } }