Mengubah urutan berdasarkan Nomor KJPP secara ascending

This commit is contained in:
2024-11-12 10:27:44 +07:00
parent 486f0d758b
commit e2061a3f5d

View File

@@ -477,8 +477,8 @@ class KJPPController extends Controller
//abort(403, 'Sorry! You are not allowed to view users.'); //abort(403, 'Sorry! You are not allowed to view users.');
} }
// Retrieve data from the database // Retrieve data from the database order by code ascending
$query = KJPP::query(); $query = KJPP::query()->orderBy('code', 'asc');
// Apply search filter if provided // Apply search filter if provided
if ($request->has('search') && !empty($request->get('search'))) { if ($request->has('search') && !empty($request->get('search'))) {