Sort room names

With a sizeable list of rooms managed by the bot, it can get
a little hard to find a specific room in the list if they
are added in random order. To make it a little easier to
visually parse the list, sort the room names.

Change-Id: Ia68c36346ea5fe542b6708a3f02ea911f348bc36
This commit is contained in:
Sean McGinnis 2017-08-30 17:07:04 -05:00
parent d35a6afc05
commit 77fe7f916a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class PTGDataBase():
return room in self.data['rooms'] return room in self.data['rooms']
def list_rooms(self): def list_rooms(self):
return self.data['rooms'] return sorted(self.data['rooms'])
def add_rooms(self, rooms): def add_rooms(self, rooms):
for room in rooms: for room in rooms: