diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php index b2fedd14e0c4ae57b623a50eb4bfe0f13994a26c..44d41b15171d05fe42992d7c249bddadea873c0b 100644 --- a/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php +++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php @@ -1008,7 +1008,7 @@ abstract class AbstractItemProvider $orderByClauses = QueryHelper::parseOrderBy($GLOBALS['TCA'][$foreignTableName]['ctrl']['default_sortby']); foreach ($orderByClauses as $orderByClause) { if (!empty($orderByClause[0])) { - $queryBuilder->addOrderBy($orderByClause[0], $orderByClause[1]); + $queryBuilder->addOrderBy($foreignTableName . '.' . $orderByClause[0], $orderByClause[1]); } } }