diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-04 08:48:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 08:48:42 +0100 |
commit | f53f542fa51075e742fc2295bfff2681b0375ea1 (patch) | |
tree | ce378eca967d680845ab3c286427ba2d21fe7b63 | |
parent | 84795d015b3c7e1af48a3dda3cb33cf080b66e8f (diff) | |
parent | ce11952447e9e8e6c5ebcd837331735ba1e7fd6f (diff) | |
download | wallabag-f53f542fa51075e742fc2295bfff2681b0375ea1.tar.gz wallabag-f53f542fa51075e742fc2295bfff2681b0375ea1.tar.zst wallabag-f53f542fa51075e742fc2295bfff2681b0375ea1.zip |
Merge pull request #2534 from wallabag/default-sort
Use created_at as default sort
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
22 | return $this->createQueryBuilder('e') | 22 | return $this->createQueryBuilder('e') |
23 | ->leftJoin('e.user', 'u') | 23 | ->leftJoin('e.user', 'u') |
24 | ->andWhere('u.id = :userId')->setParameter('userId', $userId) | 24 | ->andWhere('u.id = :userId')->setParameter('userId', $userId) |
25 | ->orderBy('e.id', 'desc') | 25 | ->orderBy('e.createdAt', 'desc') |
26 | ; | 26 | ; |
27 | } | 27 | } |
28 | 28 | ||