From 70b5982b4c55d1f75c5092a8b2dce3c113b425b5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 2 Mar 2020 09:34:03 +0100 Subject: [PATCH] luci-mod-network: switch.js: fix internal port ordering Fixes: #3709 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 1c547d36b545e79838acca021767071ae95ca5c9) --- .../htdocs/luci-static/resources/view/network/switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js index 47a67d5f5..711ca71b5 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js @@ -359,7 +359,7 @@ return L.view.extend({ } port_opts.sort(function(a, b) { - return a.option < b.option; + return a.option > b.option; }); } -- 2.25.1