Sorts categories in tile-view by prefix

This commit is contained in:
GabrielMeyer 2019-06-17 17:01:35 +02:00
parent a5e1646f3c
commit c136a1b691
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,6 @@
min-width: 30%; min-width: 30%;
.tile-text { .tile-text {
padding: 8px 16px;
table { table {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -264,7 +264,9 @@ export class MotionListComponent extends ListViewBaseComponent<ViewMotion> imple
} }
} }
this.tileCategories = Object.values(this.informationOfMotionsInTileCategories); this.tileCategories = Object.values(this.informationOfMotionsInTileCategories).sort((a, b) =>
('' + a.prefix).localeCompare(b.prefix)
);
} }
/** /**