Sort admin entries screen by id descending

This commit is contained in:
Matt Young 2024-10-01 16:27:20 -05:00
parent 38033a9ac8
commit 5be092d2ed
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class EntryController extends Controller
$schools = School::orderBy('name')->get(); $schools = School::orderBy('name')->get();
$entries = Entry::with(['student.school', 'audition']); $entries = Entry::with(['student.school', 'audition']);
$entries->orderBy('updated_at', 'DESC'); $entries->orderBy('id', 'DESC');
if ($filters) { if ($filters) {
if ($filters['id']) { if ($filters['id']) {
$entries->where('id', $filters['id']); $entries->where('id', $filters['id']);