mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-24 00:20:28 +00:00
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.
This commit is contained in:
parent
84795d015b
commit
ce11952447
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue