From cd7a59cbfa9e8d5742c22143128adaa8b18c6d80 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 6 May 2020 21:23:02 -0700 Subject: [PATCH] Sort channel names case-insensitive. --- ycdl/ycdldb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ycdl/ycdldb.py b/ycdl/ycdldb.py index 26f3af2..c3148fc 100644 --- a/ycdl/ycdldb.py +++ b/ycdl/ycdldb.py @@ -151,7 +151,7 @@ class YCDLDBChannelMixin: query = 'SELECT * FROM channels' rows = self.sql_select(query) 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 def refresh_all_channels(self, force=False, skip_failures=False, commit=True):