Project

General

Profile

« Previous | Next » 

Revision e6e3f311

Added by Katja Luther over 3 years ago

alphabetical order for refType combo

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/EnumComboElement.java
83 83

  
84 84
			@Override
85 85
			public Collection<ReferenceType> getElements() {
86
				return Arrays.asList(ReferenceType.values());
86
			    List<ReferenceType> list = Arrays.asList(ReferenceType.values());
87
			    Collections.sort(list, new Comparator<ReferenceType>() {
88
		            @Override
89
		            public int compare(ReferenceType rt1, ReferenceType rt2){
90
		                return rt1.getLabel().compareTo(rt2.getLabel());
91
		            }
92
		        });
93
				return list;
87 94
			}
88 95

  
89 96
			@Override

Also available in: Unified diff