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;