From: Nicolas LÅ“uillet Date: Fri, 4 Nov 2016 07:48:42 +0000 (+0100) Subject: Merge pull request #2534 from wallabag/default-sort X-Git-Tag: 2.1.3~4 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=f53f542fa51075e742fc2295bfff2681b0375ea1;hp=84795d015b3c7e1af48a3dda3cb33cf080b66e8f;p=github%2Fwallabag%2Fwallabag.git Merge pull request #2534 from wallabag/default-sort Use created_at as default sort --- diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index cd2b47b9..4f03ae0f 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -22,7 +22,7 @@ class EntryRepository extends EntityRepository return $this->createQueryBuilder('e') ->leftJoin('e.user', 'u') ->andWhere('u.id = :userId')->setParameter('userId', $userId) - ->orderBy('e.id', 'desc') + ->orderBy('e.createdAt', 'desc') ; }