testing yuk
This commit is contained in:
@@ -38,7 +38,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 statusKuliah = row.status_kuliah;
|
||||
@@ -64,7 +64,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 a.tahun_angkatan - b.tahun_angkatan;
|
||||
|
||||
Reference in New Issue
Block a user