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>
Fri, 8 Jul 2022 14:03:14 +0000 (16:03 +0200)
commit3a6f37f9df68c4055f9adc792e0fd4c5a1a1bf66
tree3119b0609bcfbdc18e3c25520bac334c5640ea06
parente1932592c3e0804eec5d85fee989ceeed1e1050a
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>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js