Revision 05615841
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/util/converter/TypeDesignationSetManager.java | ||
---|---|---|
232 | 232 |
return type1.equals(FieldUnit.class) ? -1 : 1; |
233 | 233 |
} else { |
234 | 234 |
// name types last (in case of missing FieldUnit we expect the base type to be DerivedUnit which comes into the middle) |
235 |
return type2.equals(TaxonName.class) ? -1 : 1; |
|
235 |
return type2.equals(TaxonName.class) || type2.equals(NameTypeDesignation.class) ? -1 : 1;
|
|
236 | 236 |
} |
237 | 237 |
} else { |
238 | 238 |
return o1.getLabel().compareTo(o2.getLabel()); |
Also available in: Unified diff
ref #7247 adapting base entity comparator to modified base entity type