diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-04 07:34:37 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-04 07:34:38 +0100 |
commit | ce11952447e9e8e6c5ebcd837331735ba1e7fd6f (patch) | |
tree | ce378eca967d680845ab3c286427ba2d21fe7b63 /src/Wallabag | |
parent | 84795d015b3c7e1af48a3dda3cb33cf080b66e8f (diff) | |
download | wallabag-ce11952447e9e8e6c5ebcd837331735ba1e7fd6f.tar.gz wallabag-ce11952447e9e8e6c5ebcd837331735ba1e7fd6f.tar.zst wallabag-ce11952447e9e8e6c5ebcd837331735ba1e7fd6f.zip |
Use created_at as default sort
Imported content use the real creation date. If we sort by id, it'll
display contents in reverse order.
Diffstat (limited to 'src/Wallabag')
-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 | ||