Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/fix case-insensitive sorting in benchmark component (#6181)
Thomas Kaula84eb7ba564f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b3fdc21fb1..b23f88eff6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -20,6 +20,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## 2.228.0 - 2026-01-03diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.tsindex fe53240ed3..adef1f41bc 100644--- a/libs/ui/src/lib/benchmark/benchmark.component.ts+++ b/libs/ui/src/lib/benchmark/benchmark.component.ts@@ -1,5 +1,9 @@import { ConfirmationDialogType } from '@ghostfolio/common/enums';-import { getLocale, resolveMarketCondition } from '@ghostfolio/common/helper';+import {+ getLocale,+ getLowercase,+ resolveMarketCondition+} from '@ghostfolio/common/helper';import {AssetProfileIdentifier,Benchmark,@@ -28,7 +32,7 @@ import { ActivatedRoute, Router, RouterModule } from '@angular/router';import { IonIcon } from '@ionic/angular/standalone';import { addIcons } from 'ionicons';import { ellipsisHorizontal, trashOutline } from 'ionicons/icons';-import { get, isNumber } from 'lodash';+import { isNumber } from 'lodash';import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';import { Subject, takeUntil } from 'rxjs';@@ -111,8 +115,9 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy {public ngOnChanges() {if (this.benchmarks) {this.dataSource.data = this.benchmarks;+ this.dataSource.sortingDataAccessor = getLowercase;+this.dataSource.sort = this.sort;- this.dataSource.sortingDataAccessor = get;this.isLoading = false;}