From f1fea6add6eb3fd537d3b0d3aff15229594f876c Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Tue, 24 May 2016 08:49:02 +0200 Subject: [PATCH] Fix sorting of time entries. --- lib/ctt/report.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/ctt/report.py b/lib/ctt/report.py index 0c1608e..b3830ec 100755 --- a/lib/ctt/report.py +++ b/lib/ctt/report.py @@ -88,14 +88,8 @@ class Report(object): @staticmethod def print_report_time_entries(report_data, output_format, summary): ''' Print time entries from report_data report using output_format. - - If summary is True then the order of times (keys) is - sorted. ''' - if summary: - keys = sorted(report_data.keys()) - else: - keys = report_data.keys() + keys = sorted(report_data.keys()) for time in keys: entries = report_data[time] for entry in entries: