Sorted bugs by date before severity sort
authorAaron Bentley <abentley@panoramicfeedback.com>
Thu, 7 Apr 2005 18:39:25 +0000 (18:39 +0000)
committerAaron Bentley <abentley@panoramicfeedback.com>
Thu, 7 Apr 2005 18:39:25 +0000 (18:39 +0000)
becommands/list.py

index 4b0fa1dd235fd59bf5d7eb2df8af304b9357fc43..f602ba321f2037b57be32287032b47c4230c0e77 100644 (file)
@@ -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)