Skip to content

Commit 6f65020

Browse files
committed
Updated user table default sorting
1 parent f6155b5 commit 6f65020

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Livewire/UserTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class UserTable extends DataTableComponent
1515
public function configure(): void
1616
{
1717
$this->setPrimaryKey('id');
18+
$this->setDefaultSort('created_at', 'asc');
1819
$this->setPerPageAccepted([50, 100, 250, 500, 1000, -1]);
1920
$this->setColumnSelectEnabled();
2021
}

0 commit comments

Comments
 (0)