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:35:04 +0000 (09:35 +0100)
Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c547d36b545e79838acca021767071ae95ca5c9)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js

index 47a67d5f5b11a20bb87d2d6b5def3ed60a220d11..711ca71b5945254f84495f6cc88d1ea3844614e8 100644 (file)
@@ -359,7 +359,7 @@ return L.view.extend({
                        }
 
                        port_opts.sort(function(a, b) {
-                               return a.option < b.option;
+                               return a.option > b.option;
                        });
                }