small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 16:35:50 +0000 (16:35 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 25 Oct 2007 16:35:50 +0000 (16:35 +0000)
lib/python/Components/EpgList.py

index 52fd9190c38a2769bdacb12464f9aae603ed547a..0c4290d64b4698f3bde7c065de7f9be4fd99746b 100644 (file)
@@ -232,7 +232,7 @@ class EPGList(HTMLComponent, GUIComponent):
                if len(self.list):
                        if type == 1:
                                event_id = self.getSelectedEventId()
                if len(self.list):
                        if type == 1:
                                event_id = self.getSelectedEventId()
-                               self.list.sort(key=lambda x: (x[4].lower(), x[2]))
+                               self.list.sort(key=lambda x: (x[4] and x[4].lower(), x[2]))
                                self.l.setList(self.list)
                                self.moveToEventId(event_id)
                        else:
                                self.l.setList(self.list)
                                self.moveToEventId(event_id)
                        else: