From 79b2c582d137d5cddbeda27cece4799082ae0efe Mon Sep 17 00:00:00 2001 From: Ludwig Lehnert Date: Mon, 21 Apr 2025 17:01:42 +0000 Subject: [PATCH] fixed blog sorting on index.php --- www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index 53f6cc4..dec4ff0 100644 --- a/www/index.php +++ b/www/index.php @@ -6,7 +6,7 @@ require_once __DIR__ . "/lib/_index.php"; $blogs = Blog::getAll(); usort($blogs, function ($a, $b) { - return strtotime($b->date) - strtotime($a->date); + return strtotime($b->date()) - strtotime($a->date()); }); ?>