Skip to content

Commit cdb6356

Browse files
committed
chore: sort reo entry
1 parent 2891fe6 commit cdb6356

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/generate-blog-reo-mapping.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ const generateBlogReoMapping = () => {
3434
}
3535
});
3636

37-
return mapping;
37+
// Sort the mapping alphabetically by keys before returning
38+
const sortedMapping = Object.keys(mapping)
39+
.sort()
40+
.reduce((acc, key) => {
41+
acc[key] = mapping[key];
42+
return acc;
43+
}, {});
44+
45+
return sortedMapping;
3846
};
3947

4048
const mapping = generateBlogReoMapping();

0 commit comments

Comments
 (0)