aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index ff90957b..5407d065 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -532,9 +532,9 @@ class EntryController extends Controller
532 $searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : ''); 532 $searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : '');
533 $currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : ''); 533 $currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : '');
534 534
535 $sortBy = 'id'; 535 $sortBy = 'createdAt';
536 if (in_array($request->get('sort', 'id'), ['id', 'created_at', 'title', 'updated_at'], true)) { 536 if (in_array($request->get('sort', 'createdAt'), ['id', 'createdAt', 'title', 'updatedAt'], true)) {
537 $sortBy = $request->get('sort', 'id'); 537 $sortBy = $request->get('sort', 'createdAt');
538 } 538 }
539 539
540 $direction = 'DESC' === $request->get('direction') ? 'DESC' : 'ASC'; 540 $direction = 'DESC' === $request->get('direction') ? 'DESC' : 'ASC';