luci-mod-network: fix sort operations
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Jul 2022 14:03:14 +0000 (16:03 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 3 Apr 2023 11:19:56 +0000 (13:19 +0200)
commit4e5b12b379749d6068dbe300c6f073891306f18a
tree6cf87d6939320dec671bdd8d3001923e4a0e5c86
parentfa4dc750d89a1bed9e052eb49db9f51627c1ae8f
luci-mod-network: fix sort operations

Ensure to return [-1, 0, 1] from the sort callback instead of [0, 1]
which fails in non-FF browsers.

Fixes: #5859
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3a6f37f9df68c4055f9adc792e0fd4c5a1a1bf66)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js