minor
authorKatja Luther <k.luther@bgbm.org>
Tue, 11 Sep 2018 09:53:27 +0000 (11:53 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 11 Sep 2018 09:53:27 +0000 (11:53 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NomenclaturalStatusElement.java

index 555021fa32e308f80f192dc32d3d1f43c235c9fc..5c01e9a435be44a2d68f0e447e0bb34a49fd0f61 100644 (file)
@@ -52,7 +52,7 @@ public class NomenclaturalStatusElement extends AbstractReferencedEntityElement<
        public void createControls(ICdmFormElement element, int style) {
            TermVocabulary vocabulary = CdmStore.getService(IVocabularyService.class).find(VocabularyEnum.NomenclaturalStatusType.getUuid());
 
-           Comparator<NomenclaturalStatusType> termComparator= (NomenclaturalStatusType t1, NomenclaturalStatusType t2) -> t1.getTitleCache().compareTo(t2.getTitleCache());
+           Comparator<NomenclaturalStatusType> termComparator= (NomenclaturalStatusType t1, NomenclaturalStatusType t2) -> t1.getIdInVocabulary().compareTo(t2.getIdInVocabulary());
                nomenclaturalStatusTypeCombo = formFactory.createDefinedTermComboElement(vocabulary, this, "Status", null,true, style, true);
                nomenclaturalStatusTypeCombo.setTermComparator(termComparator);
                ruleConsideredText = formFactory.createTextWithLabelElement(this, "Rule Considered", "", style);