mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
sort artists by localCompare name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user