diff options
Diffstat (limited to 'Bugzilla/Comment.pm')
-rw-r--r-- | Bugzilla/Comment.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index 074f28dd6..b4f94e213 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -56,7 +56,10 @@ use constant UPDATE_COLUMNS => qw( use constant DB_TABLE => 'longdescs'; use constant ID_FIELD => 'comment_id'; -use constant LIST_ORDER => 'bug_when'; +# In some rare cases, two comments can have identical timestamps. If +# this happens, we want to be sure that the comment added later shows up +# later in the sequence. +use constant LIST_ORDER => 'bug_when, comment_id'; use constant VALIDATORS => { extra_data => \&_check_extra_data, |