Project

General

Profile

« Previous | Next » 

Revision 5dc5c2ed

Added by Patrick Plitzner about 5 years ago

ref #7887 Compare labels on lower case strings

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/DefinedTermSorter.java
65 65
                termDto2.localize(new TermRepresentation_L10n());
66 66
                if(termDto1.getRepresentation_L10n()!=null){
67 67
                    if(termDto2.getRepresentation_L10n()!=null) {
68
                        return termDto1.getRepresentation_L10n().compareTo(termDto2.getRepresentation_L10n());
68
                        return termDto1.getRepresentation_L10n().toLowerCase().compareTo(termDto2.getRepresentation_L10n().toLowerCase());
69 69
                    }
70 70
                    else{
71 71
                        return 1;
......
83 83
            termVoc2.localize(new TermRepresentation_L10n());
84 84
            if(termVoc1.getRepresentation_L10n()!=null){
85 85
                if(termVoc2.getRepresentation_L10n()!=null) {
86
                    return termVoc1.getRepresentation_L10n().compareTo(termVoc2.getRepresentation_L10n());
86
                    return termVoc1.getRepresentation_L10n().toLowerCase().compareTo(termVoc2.getRepresentation_L10n().toLowerCase());
87 87
                }
88 88
                else{
89 89
                    return 1;

Also available in: Unified diff