This commit is contained in:
Sean Edmunds
2025-03-28 15:17:59 -05:00
parent 332c759ed0
commit b741903649
7 changed files with 16 additions and 12 deletions

View File

@@ -54,9 +54,11 @@ const ApplicationSettings = () => {
useEffect(() => {
if (apps && !isAppsFetching) {
setApplicationData(
apps.filter((a: Application) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
),
apps
.filter((a: Application) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: Application, b: Application) => (a.name > b.name ? 1 : -1)),
);
}
}, [apps, isAppsFetching, debouncedSearch]);

View File

@@ -51,9 +51,11 @@ const SearchProviderSettings = () => {
useEffect(() => {
if (providers && providersIsFetched) {
setProviderData(
providers.filter((a: Provider) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
),
providers
.filter((a: Provider) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: Provider, b: Provider) => (a.prefix > b.prefix ? 1 : -1)),
);
}
}, [providers, providersIsFetched, debouncedSearch]);

View File

@@ -189,6 +189,7 @@ function ThemePlaylists() {
?.filter((a: ThemePlaylist) =>
a.name.toLowerCase().includes(debouncedSearch.toLowerCase()),
)
.sort((a: any, b: any) => (a.name > b.name ? 1 : -1))
.map((cardPlaylist: ThemePlaylist) => {
return (
<Group key={cardPlaylist.name} pos={'relative'}>