luci-mod-network: switch.js: fix internal port ordering

Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-03-02 09:34:03 +01:00
parent b18937dfd0
commit 1c547d36b5

View 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;
});
}