feat(persons): order persons by full_name ASC for easier list scanning

closes #418
This commit is contained in:
Yassine Doghri 2024-01-08 14:15:45 +00:00
parent 6f8217e1a6
commit 68a599fee0
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ class PersonController extends BaseController
public function index(): string public function index(): string
{ {
$data = [ $data = [
'persons' => (new PersonModel())->findAll(), 'persons' => (new PersonModel())->orderBy('full_name')
->findAll(),
]; ];
return view('person/list', $data); return view('person/list', $data);