Sort channel names case-insensitive.

This commit is contained in:
voussoir 2020-05-06 21:23:02 -07:00
parent 0562c51d6c
commit cd7a59cbfa

View file

@ -151,7 +151,7 @@ class YCDLDBChannelMixin:
query = 'SELECT * FROM channels' query = 'SELECT * FROM channels'
rows = self.sql_select(query) rows = self.sql_select(query)
channels = [self.get_cached_instance('channel', row) for row in rows] channels = [self.get_cached_instance('channel', row) for row in rows]
channels.sort(key=lambda c: c.name) channels.sort(key=lambda c: c.name.lower())
return channels return channels
def refresh_all_channels(self, force=False, skip_failures=False, commit=True): def refresh_all_channels(self, force=False, skip_failures=False, commit=True):