Skip to content
Snippets Groups Projects
Commit 77196d27 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

colors on anchors are sorted

parent 2d9198e7
No related branches found
No related tags found
1 merge request!347Resolve "Multicolored anchors"
......@@ -204,6 +204,10 @@ AliasSurface.prototype._computeColors = function () {
result.push({color: color, amount: countByColor[color]});
}
}
var compare = function (a, b) {
return a.color.localeCompare(b.color);
};
result.sort(compare);
return result;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment