use serial, not date, as sort key

This commit is contained in:
Alexis Marie Wright 2022-04-16 21:41:04 -04:00
parent c274d710de
commit 6844d40467
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ function generateFeed($unsortedContent) {
$content = $unsortedContent;
// Sort by date descending (newest first)
usort($content, fn($a, $b) => $a->pubDate < $b->pubDate ? 1 : -1);
usort($content, fn($a, $b) => $a->serial < $b->serial ? 1 : -1);
foreach ($content as $page) {
$content = $twig->render('item-content.html', [