From 388d2f27b825860557caac2a2c821fce4aef695f Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Sun, 31 Jul 2022 23:55:20 +0200 Subject: [PATCH] Sorted buttons alphabetically again... --- app/Http/Controllers/UserController.php | 2 +- resources/views/studio/add-link.blade.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 910443c..0f02cef 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -87,7 +87,7 @@ class UserController extends Controller //Show buttons for add link public function showButtons() { - $data['buttons'] = Button::select('name')->get(); + $data['buttons'] = Button::select('name')->orderBy('name', 'asc')->get(); return view('studio/add-link', $data); } diff --git a/resources/views/studio/add-link.blade.php b/resources/views/studio/add-link.blade.php index 54755a0..4562b8a 100755 --- a/resources/views/studio/add-link.blade.php +++ b/resources/views/studio/add-link.blade.php @@ -17,9 +17,15 @@