From b5b0c44b4f7d7ff4c06bf839eacd1a7ff40da261 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 3 Jun 2013 20:37:16 +0200 Subject: [PATCH] Fixed label sort order --- .../files/lib/system/cache/builder/LabelCacheBuilder.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php index dd758cd85a..38e17d5813 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/LabelCacheBuilder.class.php @@ -27,6 +27,7 @@ class LabelCacheBuilder extends AbstractCacheBuilder { // get label groups $groupList = new LabelGroupList(); + $groupList->sqlOrderBy = 'groupName'; $groupList->readObjects(); $groups = $groupList->getObjects(); foreach ($groups as &$group) { @@ -59,6 +60,7 @@ class LabelCacheBuilder extends AbstractCacheBuilder { if (count($groupList)) { // get labels $labelList = new LabelList(); + $labelList->sqlOrderBy = 'label'; $labelList->readObjects(); foreach ($labelList as $label) { $data['groups'][$label->groupID]->addLabel($label); -- 2.20.1