From c2c1ddc055904251e00ab60b6079f68877325421 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Tue, 15 Sep 2020 08:43:20 +0000 Subject: [PATCH] [Library|Trunk] Search Filters: case sensitive when sorting by name git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59372 d315682c-612b-4755-9ff5-7f18f6832af3 --- searchPages/searchUtils/searchFilter.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchPages/searchUtils/searchFilter.component.ts b/searchPages/searchUtils/searchFilter.component.ts index 94bcd38a..b498ad0f 100644 --- a/searchPages/searchUtils/searchFilter.component.ts +++ b/searchPages/searchUtils/searchFilter.component.ts @@ -206,7 +206,7 @@ export class SearchFilterComponent implements OnInit, OnChanges{ if(this.sortBy == "name"){ sorted.sort((n1,n2)=> { - if (n1.name > n2.name) { + if (n1.name.toLowerCase() > n2.name.toLowerCase()) { return 1; }