From 6f6502095f0afde7902e3b364d5498f1ebed4298 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:02:20 +0100 Subject: [PATCH] Updated user table default sorting --- app/Http/Livewire/UserTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Livewire/UserTable.php b/app/Http/Livewire/UserTable.php index cf9dfab..d5e6b80 100644 --- a/app/Http/Livewire/UserTable.php +++ b/app/Http/Livewire/UserTable.php @@ -15,6 +15,7 @@ class UserTable extends DataTableComponent public function configure(): void { $this->setPrimaryKey('id'); + $this->setDefaultSort('created_at', 'asc'); $this->setPerPageAccepted([50, 100, 250, 500, 1000, -1]); $this->setColumnSelectEnabled(); }