diff --git a/app/Filament/Pages/Selections/LoadSeasons.php b/app/Filament/Pages/Selections/LoadSeasons.php index 8171fa15..4f8e9021 100644 --- a/app/Filament/Pages/Selections/LoadSeasons.php +++ b/app/Filament/Pages/Selections/LoadSeasons.php @@ -13,7 +13,6 @@ class LoadSeasons $res = StatistikoEvent::where('league_id', $league_id) ->groupBy('season') - ->orderBy('starttime', 'ASC') ->get(); if (! $res) { @@ -25,6 +24,8 @@ class LoadSeasons $arr[$val->season] = $val->season; } + sort($arr); + return $arr; } }