Project

General

Profile

Revision ceb614de

IDceb614de4edfb66745fd81ac7edb69d80a7874a0
Parent daffb8de
Child ac712404

Added by Katja Luther 5 months ago

fix #8861: case insensitive string comparison for term comparator

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/DefaultTermComparator.java
36 36
		}
37 37
		String label1 = o1.getLabel(CdmStore.getDefaultLanguage()) != null ? o1.getLabel(CdmStore.getDefaultLanguage()) : o1.getTitleCache();
38 38
		String label2 = o2.getLabel(CdmStore.getDefaultLanguage()) != null ? o2.getLabel(CdmStore.getDefaultLanguage()) : o2.getTitleCache();
39
		int result = label1.compareTo(label2);
39
		int result = label1.compareToIgnoreCase(label2);
40 40
		if (result == 0){
41 41
		    return o1.getUuid().compareTo(o2.getUuid());
42 42
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)