aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/list.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-04-07 18:39:25 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-04-07 18:39:25 +0000
commit82c1e85e1845d33b8e552c9f832f91d032466036 (patch)
treee546173df0f6de801426dfae969c7488381d5df6 /becommands/list.py
parent456f5d4678b2aa314ac6373f13cc1cf5cc01a0da (diff)
downloadbugseverywhere-82c1e85e1845d33b8e552c9f832f91d032466036.tar.gz
Sorted bugs by date before severity sort
Diffstat (limited to 'becommands/list.py')
-rw-r--r--becommands/list.py3
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)