fix: remove unnecessary sort

This commit is contained in:
Cory Dransfeldt 2024-03-02 08:30:23 -08:00
parent 56c87d3ff2
commit 583ea56553
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions
config/collections
package.json

View file

@ -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;

View file

@ -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": {