Sort changelogs by date + make sortable in admin panel

This commit is contained in:
slawkens
2023-11-25 20:09:42 +01:00
parent 9c60beeed0
commit 1423046039
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ $next_page = false;
$canEdit = hasFlag(FLAG_CONTENT_NEWS) || superAdmin();
$changelogs = Changelog::isPublic()->orderByDesc('id')->limit($limit + 1)->offset($offset)->get()->toArray();
$changelogs = Changelog::isPublic()->orderByDesc('date')->limit($limit + 1)->offset($offset)->get()->toArray();
$i = 0;
foreach($changelogs as $key => &$log)