From 0414accbdf7c19c27338913b803ab5edd5b93af9 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 24 Nov 2026 10:17:27 +0100 Subject: [PATCH] Bugfix/case insensitive sorting in platform and tag management of admin control panel (#8425) * Fix case-insensitive sorting in platform and tag management of admin control panel * Update changelog --- CHANGELOG.md | 2 ++ .../app/components/admin-platform/admin-platform.component.ts | 2 +- .../client/src/app/components/admin-tag/admin-tag.component.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9249057b31..027ced422a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed the duplicate data point of today in the chart of the holding detail dialog +- Fixed the case-insensitive sorting in the platform management of the admin control panel +- Fixed the case-insensitive sorting in the tag management of the admin control panel - Fixed the missing localization of the range label in the paginator - Fixed the requests of the twitter bot service with dummy credentials diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.ts index cd5341142f..5f941770fa 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts @@ -167,8 +167,8 @@ export class GfAdminPlatformComponent implements OnInit { this.dataSource = new MatTableDataSource(platforms); this.dataSource.paginator = this.paginator(); - this.dataSource.sort = this.sort(); this.dataSource.sortingDataAccessor = getLowercase; + this.dataSource.sort = this.sort(); this.dataService.updateInfo(); diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.ts b/apps/client/src/app/components/admin-tag/admin-tag.component.ts index 2481c7202a..a05180ed57 100644 --- a/apps/client/src/app/components/admin-tag/admin-tag.component.ts +++ b/apps/client/src/app/components/admin-tag/admin-tag.component.ts @@ -178,7 +178,6 @@ export class GfAdminTagComponent implements OnInit { this.dataSource = new MatTableDataSource(this.tags); this.dataSource.paginator = this.paginator(); - this.dataSource.sort = this.sort(); this.dataSource.sortingDataAccessor = (tag, path) => { if (path === 'name') { @@ -190,6 +189,8 @@ export class GfAdminTagComponent implements OnInit { return getLowercase(tag, path) as number | string; }; + this.dataSource.sort = this.sort(); + this.dataService.updateInfo(); this.isLoading = false;