ref #8651 Adapt to finer grained aggregation description type
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / descriptiveDataSet / matrix / MatrixRowComparator.java
index fc3a5133c2bffff2cb5ad0bd11e58a274ec48429..46e589e9e7f9aa52857b67c71cc355d0f707bc83 100644 (file)
@@ -108,9 +108,9 @@ public class MatrixRowComparator implements Comparator<Object>{
 
     private int compareTaxonDescriptions(TaxonDescription taxonDescription1, TaxonDescription taxonDescription2) {
         boolean isComputed1 = taxonDescription1.getTypes().stream()
-                .anyMatch(type -> type.equals(DescriptionType.AGGREGATED));
+                .anyMatch(type -> type.equals(DescriptionType.AGGREGATED_STRUC_DESC));
         boolean isComputed2 = taxonDescription2.getTypes().stream()
-                .anyMatch(type -> type.equals(DescriptionType.AGGREGATED));
+                .anyMatch(type -> type.equals(DescriptionType.AGGREGATED_STRUC_DESC));
         if(isComputed1){
             if(!isComputed2){
                 return -1;