Skip to content

Commit

Permalink
sort by liturgical memorial
Browse files Browse the repository at this point in the history
when we have enough data about the actual event dates, we can sort by event dates
  • Loading branch information
JohnRDOrazio committed Jun 22, 2024
1 parent dbc3aac commit 4e66f12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/AnniversaryCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ private function readData()
}
}
}

//TODO: we currently sort by liturgical memorial day / month, because that's the data we started with,
// however it would be more useful, once the data is defined, to sort by event day / month
$props = [
"month" => 2,
"day" => 1
"memorialMonth" => 2,
"memorialDay" => 1
];
usort($this->RESPONSE->LitEvents, function ($a, $b) use ($props) {
foreach ($props as $key => $val) {
Expand Down

0 comments on commit 4e66f12

Please sign in to comment.