Bug fixes
This commit is contained in:
@@ -43,7 +43,8 @@ function DebouncedBookmarkItem({
|
||||
if (groupData) {
|
||||
setGroups(
|
||||
groupData.sort(
|
||||
(a: BookmarkGroup, b: BookmarkGroup) => a.categoryName > b.categoryName,
|
||||
(a: BookmarkGroup, b: BookmarkGroup) =>
|
||||
a.categoryName.toLocaleLowerCase() > b.categoryName.toLocaleLowerCase(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ export function ThemePlaylists() {
|
||||
{themePlaylists
|
||||
.filter((playlist: ThemePlaylist) => playlist.default === 0)
|
||||
.sort((a: ThemePlaylist, b: ThemePlaylist) =>
|
||||
a.name > b.name ? 1 : -1,
|
||||
a.name.toLocaleLowerCase() > b.name.toLocaleLowerCase() ? 1 : -1,
|
||||
)
|
||||
.map((cardPlaylist: ThemePlaylist) => {
|
||||
return (
|
||||
|
||||
@@ -77,7 +77,10 @@ export function Themes() {
|
||||
|
||||
useEffect(() => {
|
||||
if (backgroundData && isBackgroundFetched) {
|
||||
setBackgroundList(['None', ...backgroundData]);
|
||||
setBackgroundList([
|
||||
'None',
|
||||
...backgroundData.sort((a: string, b: string) => a.localeCompare(b)),
|
||||
]);
|
||||
}
|
||||
}, [backgroundData, isBackgroundFetched]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user