From: Marcel Werk Date: Mon, 3 Jun 2013 18:37:16 +0000 (+0200) Subject: Fixed label sort order X-Git-Tag: 2.0.0_Beta_3~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5b0c44b4f7d7ff4c06bf839eacd1a7ff40da261;p=GitHub%2FWoltLab%2FWCF.git Fixed label sort order --- 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);