chore: case insensitive alpha sort robots output
This commit is contained in:
parent
d48ec86f28
commit
faba57a896
3 changed files with 7 additions and 7 deletions
|
@ -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 () {
|
||||
|
|
Reference in a new issue