From f201cf08dc1393a99b4785a23e5247199a37ed5d Mon Sep 17 00:00:00 2001 From: "benjamin.jakimow@geo.hu-berlin.de" <q8DTkxUg-BB> Date: Mon, 22 May 2017 16:56:05 +0200 Subject: [PATCH] fixed TimeSeriesDatum.__lt__(self, other) for proper sorting --- timeseriesviewer/timeseries.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/timeseriesviewer/timeseries.py b/timeseriesviewer/timeseries.py index 3a96be0d..2fc30be0 100644 --- a/timeseriesviewer/timeseries.py +++ b/timeseriesviewer/timeseries.py @@ -298,6 +298,8 @@ class TimeSeriesDatum(QObject): def __lt__(self, other): if self.date < other.date: return True + elif self.date > other.date: + return False else: return self.sensor.id() < other.sensor.id() -- GitLab