Browse Source

fixed patients page

= 3 years ago
parent
commit
74e7d1d7d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/HomeController.php

+ 1 - 1
app/Http/Controllers/HomeController.php

@@ -1665,7 +1665,7 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             default:
             default:
                 break;
                 break;
         }
         }
-        $patients = $query->orderBy('id', 'desc')->paginate(50);
+        $patients = $query->orderBy('created_at', 'desc')->paginate(50);
 
 
         // patient acquisition chart (admin only)
         // patient acquisition chart (admin only)
         $patientAcquisitionData = null;
         $patientAcquisitionData = null;