Sort line notes used in parallel diff by created_at

Fixes #13464.
This commit is contained in:
Rémy Coutable 2016-02-17 16:31:14 +01:00
parent 28d42a33f3
commit 42c2064a36
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module DiffHelper
end
def line_comments
@line_comments ||= @line_notes.select(&:active?).group_by(&:line_code)
@line_comments ||= @line_notes.select(&:active?).sort_by(&:created_at).group_by(&:line_code)
end
def organize_comments(type_left, type_right, line_code_left, line_code_right)