diff options
Diffstat (limited to 'lib/Db/CoreRequestBuilder.php')
-rw-r--r-- | lib/Db/CoreRequestBuilder.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Db/CoreRequestBuilder.php b/lib/Db/CoreRequestBuilder.php index b6e0780e..064eebca 100644 --- a/lib/Db/CoreRequestBuilder.php +++ b/lib/Db/CoreRequestBuilder.php @@ -405,7 +405,9 @@ class CoreRequestBuilder { } $qb->setMaxResults($limit); - $qb->orderBy('creation', 'desc'); + + $pf = $this->defaultSelectAlias; + $qb->orderBy($pf . '.creation', 'desc'); } |