[CourseStats] Fix barchart years direction

This commit is contained in:
Aaro Koivukangas
2026-08-20 12:18:32 +03:00
parent b710a6b671
commit bf54702cd7
@@ -390,6 +390,7 @@ export const SingleCourseStats = ({
}
}
)
.sort((a, b) => a.code - b.code) // Needs to be sorted back to ASC so that years on the barchart go from left to right
const totals = countTotalStats(formattedStats)
const programmeStats: ProgrammeStats = {