From 583ea565531aaf7dce8994008b836b721d84733c Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 2 Mar 2024 08:30:23 -0800 Subject: [PATCH] fix: remove unnecessary sort --- config/collections/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/collections/index.js b/config/collections/index.js index 24d41e05..80c7e864 100644 --- a/config/collections/index.js +++ b/config/collections/index.js @@ -40,7 +40,7 @@ export const tagMap = (collection) => { export const tagsSortedByCount = (collectionApi) => { const tagStats = {}; - const posts = collectionApi.getFilteredByGlob('src/posts/**/*.*').sort((a, b) => a.date - b.date); + const posts = collectionApi.getFilteredByGlob('src/posts/**/*.*'); posts.forEach((post) => { post.data.tags.forEach((tag) => { if (!tagStats[tag]) tagStats[tag] = 1; diff --git a/package.json b/package.json index 754b6d3b..06b2a2f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "7.1.3", + "version": "7.1.4", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": {