luci-mod-status: fix channel_analysis ReferenceError: diff is not defined
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 23 Dec 2022 18:18:39 +0000 (19:18 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 23 Dec 2022 18:19:26 +0000 (19:19 +0100)
commit54f5b171bc957de1b379a2b697df87a5cb7c4042
tree33aabe97e3189eab9fb2b4322d48493c9128c1a5
parent9e7f1c81c724ad910d7fd268bf8beb891c4b9ce3
luci-mod-status: fix channel_analysis ReferenceError: diff is not defined

In refactoring the code there was an error and the sort function wasn't
correctly reworked with diff not correctly dropped.

Drop that and correctly sort the WiFi ap if the channel is different.

Fixes: 75dcb0975472 ("luci-mod-status: improve channel_analysis page")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js