luci-mod-network: switch.js: fix internal port ordering
authorJo-Philipp Wich <jo@mein.io>
Mon, 2 Mar 2020 08:34:03 +0000 (09:34 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 2 Mar 2020 08:34:30 +0000 (09:34 +0100)
Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js

index 4467238034cb8c6ef8060ed17652850ca8641023..63427f147f0cb1c6fac9a90c9019dfc958a89330 100644 (file)
@@ -361,7 +361,7 @@ return L.view.extend({
                        }
 
                        port_opts.sort(function(a, b) {
-                               return a.option < b.option;
+                               return a.option > b.option;
                        });
                }