diff --git a/lib/upload.php b/lib/upload.php index 51de746..e3bfe58 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -109,7 +109,7 @@ function listFiles($onlyMine = true): array if (!$onlyMine && !isModerator()) { $onlyMine = true; } - $query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files"; + $query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files ORDER BY UploadedAt DESC"; if ($onlyMine) { $query .= " WHERE UploadedBy = ?";