diff options
author | W. Trevor King <wking@drexel.edu> | 2010-02-02 14:11:14 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-02-02 14:11:14 -0500 |
commit | 3f27c5c3bbc1ecd00db51c4894a9bf9651ae4fbb (patch) | |
tree | 0aaa7911d308de4585e756d04924f452b6cb0576 /libbe/command | |
parent | 907d5f0887f52b6bb718d4ff2a58d3d214c480f8 (diff) | |
download | bugseverywhere-3f27c5c3bbc1ecd00db51c4894a9bf9651ae4fbb.tar.gz |
Sort comments in `be html`.
Diffstat (limited to 'libbe/command')
-rw-r--r-- | libbe/command/html.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/command/html.py b/libbe/command/html.py index 47ee587..ebf5034 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -27,6 +27,7 @@ import xml.sax.saxutils import libbe import libbe.command import libbe.command.util +import libbe.comment import libbe.util.encoding import libbe.util.id @@ -212,6 +213,7 @@ class HTMLGen (object): stack = [] comment_entries = [] + bug.comment_root.sort(cmp=libbe.comment.cmp_time, reverse=True) for depth,comment in bug.comment_root.thread(flatten=False): while len(stack) > depth: # pop non-parents off the stack |