From 294bd53ed6c3051fbea26a004b4336ce776b3eba Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 27 May 2014 20:09:20 +0200 Subject: [PATCH] Using existing method for comparison --- .../install/files/lib/system/label/LabelHandler.class.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index f382e0d0a5..ac0e75cdc5 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -314,13 +314,7 @@ class LabelHandler extends SingletonFactory { $data[$groupID] = $this->labelGroups['groups'][$groupID]; } - uasort($data, function($a, $b) { - if ($a->showOrder == $b->showOrder) { - return ($a->groupID > $b->groupID) ? 1 : -1; - } - - return ($a->showOrder > $b->showOrder) ? 1 : -1; - }); + uasort($data, array('\wcf\data\label\group\LabelGroup', 'sortLabelGroups')); return $data; } -- 2.20.1