From c6aed51a95eb1787c5489e49e85cbeb30d4345d0 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 14 Mar 2016 19:52:35 +0100 Subject: [PATCH] Fix sort order in UncachedCategoryNodeTree --- .../files/lib/data/category/UncachedCategoryNodeTree.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php index 3f13eaa6f0..38d9f1cec8 100644 --- a/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php +++ b/wcfsetup/install/files/lib/data/category/UncachedCategoryNodeTree.class.php @@ -31,6 +31,7 @@ class UncachedCategoryNodeTree extends CategoryNodeTree { protected function buildTree() { $categoryList = new CategoryList(); $categoryList->getConditionBuilder()->add('category.objectTypeID = ?', array(CategoryHandler::getInstance()->getObjectTypeByName($this->objectType)->objectTypeID)); + $categoryList->sqlOrderBy = "category.showOrder ASC"; $categoryList->readObjects(); foreach ($categoryList as $category) { if (!isset($this->categoryStructureCache[$category->parentCategoryID])) { -- 2.20.1