Vijayakrishnan 4 سال پیش
والد
کامیت
867f184faa
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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'));
     }