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