chore: case insensitive alpha sort robots output

This commit is contained in:
Cory Dransfeldt 2024-07-17 10:57:44 -07:00
parent d48ec86f28
commit faba57a896
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View file

@ -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 () {