diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 7efa26a3..52faed62 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -176,6 +176,9 @@ also, all settings from the rails model needed for the editor configuration in t while (comments.length > 0 && comments[0].row === clusterRow) { cluster.push(comments.shift()); } + cluster = cluster.sort(function (a, b) { + return a.id - b.id; + }); var popupContent = ''; cluster.forEach(function(comment) { popupContent += '

' + comment.username + ':
' +