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

Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c547d36b5)
This commit is contained in:
Jo-Philipp Wich 2020-03-02 09:34:03 +01:00
parent 59a53c954f
commit 70b5982b4c

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