From 82c1e85e1845d33b8e552c9f832f91d032466036 Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 7 Apr 2005 18:39:25 +0000 Subject: Sorted bugs by date before severity sort --- becommands/list.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'becommands') 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) -- cgit