diff --git a/app/Http/Controllers/UserProfileController.php b/app/Http/Controllers/UserProfileController.php index 78cfb1d..33c31c2 100644 --- a/app/Http/Controllers/UserProfileController.php +++ b/app/Http/Controllers/UserProfileController.php @@ -102,6 +102,7 @@ class UserProfileController extends Controller $canView = Gate::allows('viewProfileData', $user); $achievements = Achievement::with(['category', 'difficulty']) + ->orderBy('id', 'asc') ->get() ->groupBy(fn(Achievement $a) => $a->category->name) ->map(fn($group) => $group->sortBy('sort_order')->values());