]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Order tags by slug 2763/head
authorJan Losinski <losinski@wh2.tu-dresden.de>
Tue, 17 Jan 2017 18:22:20 +0000 (19:22 +0100)
committerJan Losinski <losinski@wh2.tu-dresden.de>
Tue, 17 Jan 2017 18:22:20 +0000 (19:22 +0100)
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>
src/Wallabag/CoreBundle/Repository/TagRepository.php

index 81445989b71c97fc06a13e22f8aaada1b81d871d..2182df254315b9341448f01ba7191bfc50eed7e1 100644 (file)
@@ -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();