aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJan Losinski <losinski@wh2.tu-dresden.de>2017-01-17 19:22:20 +0100
committerJan Losinski <losinski@wh2.tu-dresden.de>2017-01-17 19:22:20 +0100
commit32755d5091546af8f82bfed3ca77287b3fb232ce (patch)
tree2efe9b639de32483bd81830351f4d77a76d27310 /src/Wallabag
parentb4d81c91de537370265c7a09b963cab49af629a8 (diff)
downloadwallabag-32755d5091546af8f82bfed3ca77287b3fb232ce.tar.gz
wallabag-32755d5091546af8f82bfed3ca77287b3fb232ce.tar.zst
wallabag-32755d5091546af8f82bfed3ca77287b3fb232ce.zip
Order tags by slug
This adds an orderBy clause to findAllTags(). This makes the list of tags more useful, as the tags appear in alphanumerical order instead of somehow random. Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Repository/TagRepository.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php
index 81445989..2182df25 100644
--- a/src/Wallabag/CoreBundle/Repository/TagRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php
@@ -49,6 +49,7 @@ class TagRepository extends EntityRepository
49 ->leftJoin('t.entries', 'e') 49 ->leftJoin('t.entries', 'e')
50 ->where('e.user = :userId')->setParameter('userId', $userId) 50 ->where('e.user = :userId')->setParameter('userId', $userId)
51 ->groupBy('t.id') 51 ->groupBy('t.id')
52 ->orderBy('t.slug')
52 ->getQuery() 53 ->getQuery()
53 ->getArrayResult(); 54 ->getArrayResult();
54 55