From 61636b6e3d73a9253f2c637b710096a7b86a7026 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Sat, 31 Oct 2020 13:38:27 +0100 Subject: [PATCH] Reverse arrays --- .../feature-list-container/feature-list-container.component.ts | 1 + .../feature-list-feature-container.component.ts | 1 + .../item-list-item-container.component.ts | 1 + .../selected-item-container/selected-item-container.component.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/projects/common-map/src/fm-map/components/feature-list-container/feature-list-container.component.ts b/projects/common-map/src/fm-map/components/feature-list-container/feature-list-container.component.ts index 151ee7b..83443ba 100644 --- a/projects/common-map/src/fm-map/components/feature-list-container/feature-list-container.component.ts +++ b/projects/common-map/src/fm-map/components/feature-list-container/feature-list-container.component.ts @@ -32,6 +32,7 @@ export class FeatureListContainerComponent { let selected = -1; let maxMatches =0; let showItem = true; + this.featureLists.reverse(); for (let i = 0; i < this.featureLists.length; i++) { let matches=0; let criteria=0; diff --git a/projects/common-map/src/fm-map/components/feature-list-feature-container/feature-list-feature-container.component.ts b/projects/common-map/src/fm-map/components/feature-list-feature-container/feature-list-feature-container.component.ts index 04b14cb..8fb965f 100644 --- a/projects/common-map/src/fm-map/components/feature-list-feature-container/feature-list-feature-container.component.ts +++ b/projects/common-map/src/fm-map/components/feature-list-feature-container/feature-list-feature-container.component.ts @@ -26,6 +26,7 @@ export class FeatureListFeatureContainerComponent { let selected = -1; let maxMatches =0; + this.featureLists.reverse(); for (let i = 0; i < this.featureLists.length; i++) { let matches=0; let criteria=0; diff --git a/projects/common-map/src/fm-map/components/item-list-item-container/item-list-item-container.component.ts b/projects/common-map/src/fm-map/components/item-list-item-container/item-list-item-container.component.ts index afb8b80..e7bc9b8 100644 --- a/projects/common-map/src/fm-map/components/item-list-item-container/item-list-item-container.component.ts +++ b/projects/common-map/src/fm-map/components/item-list-item-container/item-list-item-container.component.ts @@ -27,6 +27,7 @@ export class ItemListItemContainerComponent { let selected = -1; let maxMatches =0; let showItem = true; + this.itemComponentList.reverse(); for (let i = 0; i < this.itemComponentList.length; i++) { let matches=0; let criteria=0; diff --git a/projects/common-map/src/fm-map/components/selected-item-container/selected-item-container.component.ts b/projects/common-map/src/fm-map/components/selected-item-container/selected-item-container.component.ts index c86b87e..65d3eb6 100644 --- a/projects/common-map/src/fm-map/components/selected-item-container/selected-item-container.component.ts +++ b/projects/common-map/src/fm-map/components/selected-item-container/selected-item-container.component.ts @@ -28,6 +28,7 @@ export class SelectedItemContainerComponent { let selected = -1; let maxMatches =0; let showItem = true; + this.selectedItemComponents.reverse(); for (let i = 0; i < this.selectedItemComponents.length; i++) { let matches=0; let criteria=0;