From: Jo-Philipp Wich Date: Mon, 2 Mar 2020 08:34:03 +0000 (+0100) Subject: luci-mod-network: switch.js: fix internal port ordering X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c547d36b545e79838acca021767071ae95ca5c9;p=oweals%2Fluci.git luci-mod-network: switch.js: fix internal port ordering Fixes: #3709 Signed-off-by: Jo-Philipp Wich --- 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 446723803..63427f147 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 @@ -361,7 +361,7 @@ return L.view.extend({ } port_opts.sort(function(a, b) { - return a.option < b.option; + return a.option > b.option; }); }