sort artists by localCompare name

This commit is contained in:
austinried
2022-03-21 16:41:51 +09:00
parent d59dcc2481
commit 1e2dd100b8

View File

@@ -37,6 +37,9 @@ const ArtistsList = () => {
case 'starred':
setSortedList([...list].filter(a => a.starred))
break
case 'alphabeticalByName':
setSortedList([...list].sort((a, b) => a.name.localeCompare(b.name)))
break
default:
setSortedList([...list])
break