statistics.html: Sort GWs by netif name if same GW

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2018-01-16 00:10:17 +01:00
parent 662bec1a16
commit 9e990bc98a
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ def gws(mysql,selecthood=None):
ON router_gw.mac = gw_netif.mac
{}
GROUP BY router_gw.mac
ORDER BY ISNULL(gw.name), gw.name ASC, router_gw.mac ASC
ORDER BY ISNULL(gw.name), gw.name ASC, gw_netif.netif ASC, router_gw.mac ASC
""".format(wherewhere),tup,"mac")
selected = mysql.fetchall("""
SELECT router_gw.mac, router.status, COUNT(router_gw.router) AS count