if (relationType.equals(Relationship.CHILDREN) || relationType.equals(Relationship.SIBLINGS)
|| relationType.equals(Relationship.PARENTS)) {
List<Person> personList2 = Arrays.asList(personList);
PersonListSort.sortByBirthday(personList2);
for (int i = 0; i < personList.length; i++) {
Person p0 = personList2.get(i);
personList[i] = p0;
}
}
// Order partners by marriage date.
else if (relationType.equals(Relationship.PARTNERS)) {
List<Person> personList2 = Arrays.asList(personList);
PersonListSort.sortByMarriageDate(personList2, currPerson);
for (int i = 0; i < personList.length; i++) {
Person p0 = personList2.get(i);
personList[i] = p0;
Relationship relship = currPerson.getRelationship(p0);
String relType = relship.getType();
String marriageDate = relship.getValue(RelationshipPartners.STARTDATE);
String marriageEnd = relship.getValue(RelationshipPartners.ENDDATE);
if (relType.equals(RelationshipPartners.MARRIAGE)) {
String divorceExtraText = "";
if (i < personList.length - 1) { // Nicht die letzte Person.
Relationship relship2 = currPerson.getRelationship(personList2.get(i + 1));
String marriageDate2 = relship2.getValue(RelationshipPartners.STARTDATE);
long lP0DeathDate = Statics.getMinYYYYMMDDlong(p0.getValueView(Person.DEATHDAY));
if (Statics.getMinYYYYMMDDlong(marriageDate2) > lP0DeathDate && lP0DeathDate > 9999) {
divorceExtraText = ", verwittwet";
}
}
if (marriageDate != null) {