From 05cd107af645dc5584181f42398cb423a5617306 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 16 Jul 2024 11:49:31 -0700 Subject: [PATCH] chore: support proper badge collection sorting --- package-lock.json | 4 ++-- package.json | 2 +- src/data/badges.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5b37e4e6..1bdba6b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.9.3", + "version": "20.9.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.9.3", + "version": "20.9.4", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 4cefbad8..62529be7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.9.3", + "version": "20.9.4", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/src/data/badges.js b/src/data/badges.js index 5fec133a..c1bf8406 100644 --- a/src/data/badges.js +++ b/src/data/badges.js @@ -20,7 +20,7 @@ const fetchAllBadges = async () => { const transformedData = data.map(badge => ({ ...badge, image: badge['image']['filename_disk'], - })) + })).sort((a, b) => a.sort - b.sort) return transformedData }