Skip to content
Snippets Groups Projects
Commit 68a599fe authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

closes #418
parent 6f8217e1
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,8 @@ class PersonController extends BaseController ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment