From: Alexander Ebert Date: Tue, 27 May 2014 18:09:20 +0000 (+0200) Subject: Using existing method for comparison X-Git-Tag: 2.1.0_Alpha_1~791^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=294bd53ed6c3051fbea26a004b4336ce776b3eba;p=GitHub%2FWoltLab%2FWCF.git Using existing method for comparison --- 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; }