diff --git a/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php b/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php index 7cefd73b..e5012648 100644 --- a/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php +++ b/bundle/Core/Persistence/Legacy/Tags/Gateway/DoctrineDatabase.php @@ -337,7 +337,11 @@ function (array $row) { $tagIds ) ); - $query->orderBy('eztags_keyword.keyword', 'ASC'); + + $query->orderBy( + $this->handler->quoteColumn('keyword', 'eztags_keyword'), + $query::ASC + ); $statement = $query->prepare(); $statement->execute();