diff --git a/CHANGELOG b/CHANGELOG index ad83b4e59f6af82d503d46ffc0cea483982acf4e..4ade19782a09138b58e361db8671806597dffc94 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/frontend-js/src/main/js/gui/admin/ChooseAnnotatorsDialog.js b/frontend-js/src/main/js/gui/admin/ChooseAnnotatorsDialog.js index 570935cda219eddf32e637fc60ecf2ae654a2ec4..9f5d5795694076bfccdfc213cc661e745cd7227b 100644 --- a/frontend-js/src/main/js/gui/admin/ChooseAnnotatorsDialog.js +++ b/frontend-js/src/main/js/gui/admin/ChooseAnnotatorsDialog.js @@ -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",