mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Sort archive page by archived at
This commit is contained in:
parent
7c0d682687
commit
9007fe0062
2 changed files with 1 additions and 3 deletions
|
@ -532,11 +532,9 @@ class EntryController extends Controller
|
|||
switch ($type) {
|
||||
case 'search':
|
||||
$qb = $repository->getBuilderForSearchByUser($this->getUser()->getId(), $searchTerm, $currentRoute);
|
||||
|
||||
break;
|
||||
case 'untagged':
|
||||
$qb = $repository->getBuilderForUntaggedByUser($this->getUser()->getId());
|
||||
|
||||
break;
|
||||
case 'starred':
|
||||
$qb = $repository->getBuilderForStarredByUser($this->getUser()->getId());
|
||||
|
|
|
@ -50,7 +50,7 @@ class EntryRepository extends EntityRepository
|
|||
public function getBuilderForArchiveByUser($userId)
|
||||
{
|
||||
return $this
|
||||
->getSortedQueryBuilderByUser($userId)
|
||||
->getSortedQueryBuilderByUser($userId, 'archivedAt', 'desc')
|
||||
->andWhere('e.isArchived = true')
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue