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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ class PersonController extends BaseController
    public function index(): string
    {
        $data = [
            'persons' => (new PersonModel())->findAll(),
            'persons' => (new PersonModel())->orderBy('full_name')
                ->findAll(),
        ];

        return view('person/list', $data);