This commit is contained in:
everythingonblack
2025-06-18 04:43:11 +07:00
parent 518bf076a3
commit 60a77442b3

View File

@@ -230,12 +230,7 @@ const Dashboard = () => {
}; };
const prefixes = Object.keys(prefixLabelMap); const prefixes = Object.keys(prefixLabelMap);
const hours = rawData.map(d => d.hour.split(' ')[1]).sort((a, b) => { const hours = rawData.map(d => d.hour).sort((a, b) => parseFloat(a) - parseFloat(b));
// Sort berdasarkan jam dan menit
const [h1, m1] = a.split(':').map(Number);
const [h2, m2] = b.split(':').map(Number);
return h1 !== h2 ? h1 - h2 : m1 - m2;
});
const counts = {}; const counts = {};
prefixes.forEach(prefix => { prefixes.forEach(prefix => {