unknown 3 years ago
parent
commit
6f08c755a3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Http/Controllers/PracticeManagementController.php

+ 3 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -48,7 +48,9 @@ class PracticeManagementController extends Controller
 
     public function rpmMatrix(Request $request)
     {
-        $clients = Client::whereNull('shadow_pro_id')->orderBy('most_recent_cellular_measurement_at', 'desc')->paginate(50);
+        $clients = Client::whereNull('shadow_pro_id')
+            ->orderByRaw('(most_recent_cellular_measurement_at desc nulls last)')
+            ->paginate(50);
         return view ('app.practice-management.rpm-matrix', compact('clients'));
     }