From 1ffda4f89685419dd4750802214d633a1aa61f53 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 16 Aug 2017 17:29:26 +0200 Subject: [PATCH] Fix cluster sorting --- app/views/request_for_comments/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 3e889ac6..4907949b 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -159,7 +159,7 @@ also, all settings from the rails model needed for the editor configuration in t jqrequest.done(function(response){ var comments = response.slice().sort(function (a, b) { - return a.row > b.row; + return a.row - b.row; }); while (comments.length > 0) { var cluster = [];