diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-04-07 18:39:25 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-04-07 18:39:25 +0000 |
commit | 82c1e85e1845d33b8e552c9f832f91d032466036 (patch) | |
tree | e546173df0f6de801426dfae969c7488381d5df6 | |
parent | 456f5d4678b2aa314ac6373f13cc1cf5cc01a0da (diff) | |
download | bugseverywhere-82c1e85e1845d33b8e552c9f832f91d032466036.tar.gz |
Sorted bugs by date before severity sort
-rw-r--r-- | becommands/list.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |