From c136a1b691ad0ebba7ed052f01fd824eb744a6a6 Mon Sep 17 00:00:00 2001 From: GabrielMeyer Date: Mon, 17 Jun 2019 17:01:35 +0200 Subject: [PATCH] Sorts categories in tile-view by prefix --- .../shared/components/block-tile/block-tile.component.scss | 2 -- .../components/motion-list/motion-list.component.ts | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/components/block-tile/block-tile.component.scss b/client/src/app/shared/components/block-tile/block-tile.component.scss index 81a06190a..7b6eab9e2 100644 --- a/client/src/app/shared/components/block-tile/block-tile.component.scss +++ b/client/src/app/shared/components/block-tile/block-tile.component.scss @@ -7,8 +7,6 @@ min-width: 30%; .tile-text { - padding: 8px 16px; - table { height: 100%; width: 100%; diff --git a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts index 31d03a979..f7e36311f 100644 --- a/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts +++ b/client/src/app/site/motions/modules/motion-list/components/motion-list/motion-list.component.ts @@ -264,7 +264,9 @@ export class MotionListComponent extends ListViewBaseComponent imple } } - this.tileCategories = Object.values(this.informationOfMotionsInTileCategories); + this.tileCategories = Object.values(this.informationOfMotionsInTileCategories).sort((a, b) => + ('' + a.prefix).localeCompare(b.prefix) + ); } /**