Index: t3lib/class.t3lib_userauthgroup.php =================================================================== --- t3lib/class.t3lib_userauthgroup.php (revision 6849) +++ t3lib/class.t3lib_userauthgroup.php (working copy) @@ -1232,9 +1232,11 @@ } // Processing filemounts + t3lib_div::loadTCA('sys_filemounts'); + $orderBy = $GLOBALS['TCA']['sys_filemounts']['ctrl']['sortby'] ? $GLOBALS['TCA']['sys_filemounts']['ctrl']['sortby'] : ''; $this->dataLists['filemount_list'] = t3lib_div::uniqueList($this->dataLists['filemount_list']); if ($this->dataLists['filemount_list']) { - $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_filemounts', 'deleted=0 AND hidden=0 AND pid=0 AND uid IN ('.$this->dataLists['filemount_list'].')'); + $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_filemounts', 'deleted=0 AND hidden=0 AND pid=0 AND uid IN ('.$this->dataLists['filemount_list'].')', '', $orderBy); while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { $this->addFileMount($row['title'], $row['path'], $row['path'], $row['base']?1:0, ''); } Index: t3lib/stddb/tables.php =================================================================== --- t3lib/stddb/tables.php (revision 6849) +++ t3lib/stddb/tables.php (working copy) @@ -336,6 +336,7 @@ 'ctrl' => array( 'label' => 'title', 'tstamp' => 'tstamp', + 'sortby' => 'sorting', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy', 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts', 'adminOnly' => 1, Index: t3lib/stddb/tables.sql =================================================================== --- t3lib/stddb/tables.sql (revision 6849) +++ t3lib/stddb/tables.sql (working copy) @@ -266,6 +266,7 @@ base tinyint(4) unsigned DEFAULT '0' NOT NULL, hidden tinyint(3) unsigned DEFAULT '0' NOT NULL, deleted tinyint(1) unsigned DEFAULT '0' NOT NULL, + sorting int(11) unsigned DEFAULT '0' NOT NULL, PRIMARY KEY (uid), KEY parent (pid) );