Skip to content

Commit 3ecf039

Browse files
committed
alphabetical sort in zone list
1 parent 36ae81a commit 3ecf039

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.py

+4
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,25 @@ async def zone(ctx, *, entry):
7272
if text['Good'] == []:
7373
text['Good'] = "No server in this status"
7474
else:
75+
text['Good'].sort()
7576
text['Good'] = '\n'.join(text['Good'])
7677

7778
if text['Full'] == []:
7879
text['Full'] = "No server in this status"
7980
else:
81+
text['Full'].sort()
8082
text['Full'] = '\n'.join(text['Full'])
8183

8284
if text['Busy'] == []:
8385
text['Busy'] = "No server in this status"
8486
else:
87+
text['Busy'].sort()
8588
text['Busy'] = '\n'.join(text['Busy'])
8689

8790
if text['Maintenance'] == []:
8891
text['Maintenance'] = "No server in this status"
8992
else:
93+
text['Maintenance'].sort()
9094
text['Maintenance'] = '\n'.join(text['Maintenance'])
9195

9296
if bot.timer == "":

0 commit comments

Comments
 (0)