Vijayakrishnan 4 gadi atpakaļ
vecāks
revīzija
867f184faa
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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'));
     }