Sort channels alphabetically

This commit is contained in:
Robert Miles 2018-06-20 17:31:44 -04:00
parent 710da45d5c
commit 4ccf152882
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ for schannel in schannels:
if channel["name"]=="#sudoers": # no stat output for #sudoers! it's a sekrit club of the ~team sysadmins!
continue
channels.append(channel)
channels.sort(key=lambda x: x["name"].lower())
out["channels"]=channels
#print([x.text for x in d.findall("./channellist/channel/channeltopic/topictext")])
with open("/var/www/html/tilde.chat/stats.json","w") as f: