diff --git a/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/DoctrineDatabase.php b/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/DoctrineDatabase.php index c84c30ce84e..22019f49a32 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/DoctrineDatabase.php +++ b/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/DoctrineDatabase.php @@ -573,7 +573,7 @@ public function loadTypesDataForGroup($groupId, $status) $q ->where('g.group_id = :gid') ->andWhere('c.version = :version') - ->addOrderBy('c.id') + ->addOrderBy('c.identifier') ->setParameter('gid', $groupId, ParameterType::INTEGER) ->setParameter('version', $status, ParameterType::INTEGER);