use serial, not date, as sort key
This commit is contained in:
parent
c274d710de
commit
6844d40467
|
@ -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', [
|
||||
|
|
Loading…
Reference in New Issue