fix: remove unnecessary sort
This commit is contained in:
parent
56c87d3ff2
commit
583ea56553
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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": {
|
||||
|
|
Reference in a new issue