From 63d47cfc035a3e82993fc88b618c6789a6667132 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Fri, 24 May 2019 16:06:01 +0200 Subject: [PATCH] Fix reaction sorting function See #2508 --- .../files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js index f498d24546..73006a2ede 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js @@ -330,12 +330,7 @@ define( // sort the array sortedReactionTypes.sort(function (a, b) { - if (a.showOrder > b.showOrder) { - return 1; - } - else { - return -1; - } + return a.showOrder - b.showOrder; }); return sortedReactionTypes; -- 2.20.1