From 0fafc271458920ef8c7b629c5db97af34921c266 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Mon, 10 Feb 2014 21:47:14 +0100 Subject: [PATCH] Fix podcast list sorting by title --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index b39e0cd..3f76a3b 100644 --- a/main.py +++ b/main.py @@ -129,8 +129,9 @@ class gPotherSide: } def _get_podcasts_sorted(self): + sort_key = self.core.model.podcast_sort_key return sorted(self.core.model.get_podcasts(), - key=lambda podcast: (podcast.section, podcast.title)) + key=lambda podcast: (podcast.section, sort_key(podcast))) def load_podcasts(self): podcasts = self._get_podcasts_sorted()