testing yuk

This commit is contained in:
Randa Firman Putra
2025-09-14 16:59:31 +07:00
parent 248fed0d0b
commit 60211ae829
63 changed files with 315 additions and 315 deletions

View File

@@ -32,7 +32,7 @@ export async function GET(request: Request) {
);
}
// Group and count the data in JavaScript
// Kelompokkan dan hitung data di JavaScript
const groupedData = data.reduce((acc: any[], row: any) => {
const tahunAngkatanValue = row.tahun_angkatan;
const jenisPendaftaran = row.jenis_pendaftaran;
@@ -58,7 +58,7 @@ export async function GET(request: Request) {
return acc;
}, []);
// Sort the results
// Urutkan hasil
const sortedData = groupedData.sort((a: any, b: any) => {
if (a.tahun_angkatan !== b.tahun_angkatan) {
return b.tahun_angkatan - a.tahun_angkatan;