Fix cluster sorting

This commit is contained in:
Maximilian Grundke
2017-08-16 17:29:26 +02:00
parent 0f3db8a644
commit 1ffda4f896

View File

@ -159,7 +159,7 @@ also, all settings from the rails model needed for the editor configuration in t
jqrequest.done(function(response){ jqrequest.done(function(response){
var comments = response.slice().sort(function (a, b) { var comments = response.slice().sort(function (a, b) {
return a.row > b.row; return a.row - b.row;
}); });
while (comments.length > 0) { while (comments.length > 0) {
var cluster = []; var cluster = [];