diff --git a/app/Filament/Widgets/RecentJitterChartWidget.php b/app/Filament/Widgets/RecentJitterChartWidget.php index b52fce9b3..208986d70 100644 --- a/app/Filament/Widgets/RecentJitterChartWidget.php +++ b/app/Filament/Widgets/RecentJitterChartWidget.php @@ -48,6 +48,7 @@ protected function getData(): array ->when($this->filter == 'month', function ($query) { $query->where('created_at', '>=', now()->subMonth()); }) + ->latest() ->get(); return [ diff --git a/app/Filament/Widgets/RecentPingChartWidget.php b/app/Filament/Widgets/RecentPingChartWidget.php index a50199cff..3537e25f4 100644 --- a/app/Filament/Widgets/RecentPingChartWidget.php +++ b/app/Filament/Widgets/RecentPingChartWidget.php @@ -48,6 +48,7 @@ protected function getData(): array ->when($this->filter == 'month', function ($query) { $query->where('created_at', '>=', now()->subMonth()); }) + ->latest() ->get(); return [ diff --git a/app/Filament/Widgets/RecentSpeedChartWidget.php b/app/Filament/Widgets/RecentSpeedChartWidget.php index b02156c94..ecebf3377 100644 --- a/app/Filament/Widgets/RecentSpeedChartWidget.php +++ b/app/Filament/Widgets/RecentSpeedChartWidget.php @@ -48,6 +48,7 @@ protected function getData(): array ->when($this->filter == 'month', function ($query) { $query->where('created_at', '>=', now()->subMonth()); }) + ->latest() ->get(); return [