Integer index1 = getPropertyIndex(o1.getProperty());
Integer index2 = getPropertyIndex(o2.getProperty());
if(!index1.equals(index2)) {
return index1 - index2;
}
PropertyValueComparator propertyValueComparator = new PropertyValueComparator(project);
PropertyValue propertyValue1 = new PropertyAnnotationValue(o1.getProperty(), o1.getValue(), PropertyValueState.ASSERTED);
PropertyValue propertyValue2 = new PropertyAnnotationValue(o2.getProperty(), o2.getValue(), PropertyValueState.ASSERTED);
return propertyValueComparator.compare(propertyValue1, propertyValue2);
}