Skip to content

Commit

Permalink
Added comment as per ged2ite
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Feb 12, 2024
1 parent cd12fbe commit 2f7ff1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -3881,13 +3881,15 @@ sub print_person
$phrase->append(scalar(@spouses) . i18n(' times'));
}

# Sort the order of the marriages by date
my $all_marriages_have_date = 1;
foreach my $spouse(@spouses) {
if(!date_to_datetime(dateofmarriage($spouse))) {
$all_marriages_have_date = 0;
last;
}
}

if($all_marriages_have_date) {
@spouses = Sort::Key::DateTime::dtkeysort {
my $date = dateofmarriage($_);
Expand Down

0 comments on commit 2f7ff1d

Please sign in to comment.