Fix algorithm sort.

This commit is contained in:
Unick Soft 2018-02-17 20:40:12 +03:00
parent 9361664643
commit 323b05d6cd
2 changed files with 2 additions and 2 deletions

View File

@ -1141,7 +1141,7 @@ Application.prototype.getAlgorithmNames = function()
}
res.sort(function (a, b) {
return a.priority > b.priority;
return a.priority - b.priority;
});
return res;

View File

@ -212,7 +212,7 @@ RadiusAndDiameter.prototype.getObjectSelectedGroup = function(object)
RadiusAndDiameter.prototype.getPriority = function()
{
return -8.5;
return -9.6;
}
// Factory for connected components.