From 32755d5091546af8f82bfed3ca77287b3fb232ce Mon Sep 17 00:00:00 2001 From: Jan Losinski Date: Tue, 17 Jan 2017 19:22:20 +0100 Subject: [PATCH] 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 --- src/Wallabag/CoreBundle/Repository/TagRepository.php | 1 + 1 file changed, 1 insertion(+) 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 ->leftJoin('t.entries', 'e') ->where('e.user = :userId')->setParameter('userId', $userId) ->groupBy('t.id') + ->orderBy('t.slug') ->getQuery() ->getArrayResult(); -- 2.41.0