diff --git a/compendium-frontend/src/components/ScrollableMatrix.tsx b/compendium-frontend/src/components/ScrollableMatrix.tsx
index dd7a788a3a13dd3bcd60e103ddb1f21ee739728d..0bb402ee2efed06c6b0f3e48fd198c8cae0627a8 100644
--- a/compendium-frontend/src/components/ScrollableMatrix.tsx
+++ b/compendium-frontend/src/components/ScrollableMatrix.tsx
@@ -35,11 +35,7 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
             Array.from(dataLookup.entries()).sort(
                 ([nrenA], [nrenB]) => nrenA.localeCompare(nrenB)
             ).forEach(([_nren, nrenData]) => {
-                const sortedNrenData = Array.from(nrenData.entries()).sort(
-                    ([yearA], [yearB]) => yearA - yearB
-                );
-                sortedNrenData.forEach(([_year, yearData]) => {
-                    console.log(_year)
+                nrenData.forEach((yearData) => {
                     const valuesForCategory = yearData.get(categoryKey);
                     if (!valuesForCategory) return;
 
@@ -80,6 +76,10 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
             return nrenYears;
         }, {});
 
+        for (const nren in nrenYears) {
+            nrenYears[nren].sort((a, b) => a - b)
+        }
+
         const categoryContent = (
             <CollapsibleBox title={categoryTitle} startCollapsed key={categoryKey} theme="-matrix">
                 {