Vijayakrishnan 4 yıl önce
ebeveyn
işleme
867f184faa
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      app/Http/Controllers/PatientController.php

+ 2 - 0
app/Http/Controllers/PatientController.php

@@ -24,6 +24,7 @@ class PatientController extends Controller
         $dxInfoLines = ClientInfoLine::where('client_id', $patient->id)
             ->where('category', 'dx')
             ->where('is_removed', false)
+            ->orderBy('content_text', 'asc')
             ->get();
         return view('app.patient.dashboard', compact('patient', 'facilities', 'devices', 'dxInfoLines'));
     }
@@ -64,6 +65,7 @@ class PatientController extends Controller
         $dxInfoLines = ClientInfoLine::where('client_id', $patient->id)
             ->where('category', 'dx')
             ->where('is_removed', false)
+            ->orderBy('content_text', 'asc')
             ->get();
         return view('app.patient.dx-and-focus-areas', compact('patient', 'dxInfoLines'));
     }