fix: blogroll sorting

This commit is contained in:
Cory Dransfeldt 2024-06-02 20:31:00 -07:00
parent 781e8c525b
commit a67d4b38a2
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "18.6.6",
"version": "18.6.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "18.6.6",
"version": "18.6.7",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "18.6.6",
"version": "18.6.7",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -16,5 +16,5 @@ export default async function fetchGenresWithArtists() {
return []
}
return data
return data.sort((a, b) => a['name'].toLowerCase().localeCompare(b['name'].toLowerCase()))
}