From bf6961f72c271cbb7f2b4f0054e2111d57acfba2 Mon Sep 17 00:00:00 2001 From: Baoshuo Ren Date: Wed, 19 Oct 2022 18:26:09 +0800 Subject: [PATCH] fix(web): sidebar assignments sort --- web/app/views/sidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/views/sidebar.php b/web/app/views/sidebar.php index 90315ba..6139098 100644 --- a/web/app/views/sidebar.php +++ b/web/app/views/sidebar.php @@ -41,7 +41,7 @@ $deadline_a = DateTime::createFromFormat('Y-m-d H:i:s', $a['deadline']); $deadline_b = DateTime::createFromFormat('Y-m-d H:i:s', $b['deadline']); - return $deadline_a->getTimestamp() - $deadline_b->getTimestamp(); + return $deadline_b->getTimestamp() - $deadline_a->getTimestamp(); }); ?>