Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix case-insensitive sorting in holdings table component (#6183)
Thomas Kaul60a64b768df7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b23f88eff6..5c1fad4dbb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Fixed the filtering by asset class in the endpoint `GET api/v1/portfolio/holdings`- Fixed the case-insensitive sorting in the accounts table component- Fixed the case-insensitive sorting in the benchmark component+- Fixed the case-insensitive sorting in the holdings table component## 2.228.0 - 2026-01-03diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.html b/libs/ui/src/lib/holdings-table/holdings-table.component.htmlindex d3afe9de9e..7c7f6b8294 100644--- a/libs/ui/src/lib/holdings-table/holdings-table.component.html+++ b/libs/ui/src/lib/holdings-table/holdings-table.component.html@@ -19,12 +19,7 @@</ng-container><ng-container matColumnDef="nameWithSymbol">- <th- *matHeaderCellDef- class="px-1"- mat-header-cell- mat-sort-header="symbol"- >+ <th *matHeaderCellDef class="px-1" mat-header-cell mat-sort-header="name"><ng-container i18n>Name</ng-container></th><td *matCellDef="let element" class="line-height-1 px-1" mat-cell>diff --git a/libs/ui/src/lib/holdings-table/holdings-table.component.ts b/libs/ui/src/lib/holdings-table/holdings-table.component.tsindex 1c46e18dbf..f408f7d9b5 100644--- a/libs/ui/src/lib/holdings-table/holdings-table.component.ts+++ b/libs/ui/src/lib/holdings-table/holdings-table.component.ts@@ -1,4 +1,4 @@-import { getLocale } from '@ghostfolio/common/helper';+import { getLocale, getLowercase } from '@ghostfolio/common/helper';import {AssetProfileIdentifier,PortfolioPosition@@ -92,6 +92,8 @@ export class GfHoldingsTableComponent implements OnChanges, OnDestroy {this.dataSource = new MatTableDataSource(this.holdings);this.dataSource.paginator = this.paginator;+ this.dataSource.sortingDataAccessor = getLowercase;+this.dataSource.sort = this.sort;if (this.holdings) {