From faba57a8963c026bbf25b2c39b3eedab08ba4982 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 17 Jul 2024 10:57:44 -0700 Subject: [PATCH] chore: case insensitive alpha sort robots output --- package-lock.json | 10 +++++----- package.json | 2 +- src/data/robots.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0e778e84..8cd1937d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "20.12.1", + "version": "20.12.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "20.12.1", + "version": "20.12.2", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", @@ -1254,9 +1254,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.828", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.828.tgz", - "integrity": "sha512-QOIJiWpQJDHAVO4P58pwb133Cwee0nbvy/MV1CwzZVGpkH1RX33N3vsaWRCpR6bF63AAq366neZrRTu7Qlsbbw==", + "version": "1.4.829", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.829.tgz", + "integrity": "sha512-5qp1N2POAfW0u1qGAxXEtz6P7bO1m6gpZr5hdf5ve6lxpLM7MpiM4jIPz7xcrNlClQMafbyUDDWjlIQZ1Mw0Rw==", "dev": true, "license": "ISC" }, diff --git a/package.json b/package.json index df4a3ac5..83a9b439 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "20.12.1", + "version": "20.12.2", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/src/data/robots.js b/src/data/robots.js index bcf8129b..78bde461 100644 --- a/src/data/robots.js +++ b/src/data/robots.js @@ -26,7 +26,7 @@ const fetchAllRobots = async () => { if (data.length < PAGE_SIZE) break } - return robots.map(robot => robot['user_agent']) + return robots.map(robot => robot['user_agent']).sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) } export default async function () {