fix(web): sidebar assignments sort
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-19 18:26:09 +08:00 committed by GitHub
parent 07b3388f56
commit bf6961f72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@
$deadline_a = DateTime::createFromFormat('Y-m-d H:i:s', $a['deadline']); $deadline_a = DateTime::createFromFormat('Y-m-d H:i:s', $a['deadline']);
$deadline_b = DateTime::createFromFormat('Y-m-d H:i:s', $b['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();
}); });
?> ?>
<?php if (count($assignments)): ?> <?php if (count($assignments)): ?>