From: Aaron Bentley Date: Thu, 7 Apr 2005 18:39:25 +0000 (+0000) Subject: Sorted bugs by date before severity sort X-Git-Tag: 1.0.0~303 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82c1e85e1845d33b8e552c9f832f91d032466036;p=be.git Sorted bugs by date before severity sort --- diff --git a/becommands/list.py b/becommands/list.py index 4b0fa1d..f602ba3 100644 --- a/becommands/list.py +++ b/becommands/list.py @@ -59,6 +59,9 @@ def execute(args): other_bugs.append(bug) def list_bugs(cur_bugs, title, no_target=False): + def cmp_date(bug1, bug2): + return -cmp(bug1.time, bug2.time) + cur_bugs.sort(cmp_date) cur_bugs.sort(bugdir.cmp_severity) if len(cur_bugs) > 0: print cmdutil.underlined(title)