aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-20 23:00:59 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-10-20 23:00:59 +0000
commita29c1db0ffb7ee443a16213476c8cd96ee0d3757 (patch)
tree18ae1342eaa41e80d9c9b1b57ee14557612795de /lib/python/Components
parent31e25fad17dc49768debc9b2d83c19886fa40188 (diff)
downloadenigma2-a29c1db0ffb7ee443a16213476c8cd96ee0d3757.tar.gz
enigma2-a29c1db0ffb7ee443a16213476c8cd96ee0d3757.zip
fix
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/TimerSanityCheck.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/python/Components/TimerSanityCheck.py b/lib/python/Components/TimerSanityCheck.py
index 54c8f44c..e7cc8b9b 100644
--- a/lib/python/Components/TimerSanityCheck.py
+++ b/lib/python/Components/TimerSanityCheck.py
@@ -141,9 +141,12 @@ class TimerSanityCheck:
self.nrep_eventlist.extend([(new_event_begin, event[1], self.bflag),(new_event_end, event[1], self.eflag)])
def sort_func(x, y):
- if x[0] == y[0]:
- return cmp(y[2], x[2])
- return cmp(x[0], y[0])
+ ret = cmp(x[0], y[0])
+ if not ret:
+ ret = cmp(y[2], x[2])
+ if not ret:
+ return cmp(x[1], y[1])
+ return ret
################################################################################
# order list chronological
self.nrep_eventlist.sort(sort_func)