Browse Source

sort query

Jens Keim 5 years ago
parent
commit
e1c23cc0ee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/Core/Statistics.py

+ 2 - 1
code/Core/Statistics.py

@@ -216,7 +216,8 @@ class Statistics:
         :param table_name: the name of the interval statistics table
         :return: a list of tuples, each consisting of (description, values, unit).
         """
-        interval_stats = self.stats_db.process_interval_statistics_query("SELECT * from %s", table_name)
+        interval_stats = self.stats_db.process_interval_statistics_query("SELECT * FROM %s ORDER BY starttimestamp ASC",
+                                                                         table_name)
 
         print(interval_stats)