From 966d9685bdd0104fe1df98d992f5332217ccee61 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 25 Apr 2023 11:49:27 +0200 Subject: [PATCH] fix: months are sorted descending (#1836) --- .../entity-subrecord/entity-subrecord.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/entity-components/entity-subrecord/entity-subrecord/entity-subrecord.component.ts b/src/app/core/entity-components/entity-subrecord/entity-subrecord/entity-subrecord.component.ts index 4a532f0290..9fc4e9b96e 100644 --- a/src/app/core/entity-components/entity-subrecord/entity-subrecord/entity-subrecord.component.ts +++ b/src/app/core/entity-components/entity-subrecord/entity-subrecord/entity-subrecord.component.ts @@ -313,7 +313,7 @@ export class EntitySubrecordComponent implements OnChanges { let sortDirection: SortDirection = "asc"; if ( sortByColumn?.view === "DisplayDate" || - sortByColumn?.edit === "EditDate" + sortByColumn?.view === "DisplayMonth" ) { // flip default sort order for dates (latest first) sortDirection = "desc";