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

list of available annotators is sorted alphabetically

parent b4ce4d37
No related branches found
No related tags found
2 merge requests!805Merge 13.1.0 beta.1,!791Resolve "Sort the lists of annotators in Select annotators and Select valid annotators"
......@@ -4,6 +4,7 @@ minerva (12.3.1~beta.1) unstable; urgency=low
* Bug fix: plugin tab header wasn't properly resized after adding plugins
that introduced second line for tab selection (#758)
* Bug fix: invisible layer shouldn't be shown in the on th map (#813)
* Bug fix: list of availbale annotators is sorted alphabetically (#815)
minerva (13.1.0~beta.0) unstable; urgency=low
* Feature: annotators are more flexible - you can define set of input and
......
......@@ -197,6 +197,15 @@ ChooseAnnotatorsDialog.prototype.setElementType = function (elementType) {
}
entries.push(entry);
}
entries.sort(function (entryA, entryB) {
if (entryA.name < entryB.name) {
return -1;
}
if (entryA.name > entryB.name) {
return 1;
}
return 0;
});
var checkboxList = new MultiCheckboxList(selectElement, {
entries: entries,
listTitle: "Available annotators",
......
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