Skip to content

Commit b65b1e5

Browse files
committed
List team groups sorted as in the yaml file
1 parent 8225bf4 commit b65b1e5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/app/component/teams/teams.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2>Team List</h2>
66
</ul>
77
</div>
88
<h2>Team Group</h2>
9-
<div class="group-expand" *ngFor="let group of teamGroups | keyvalue">
9+
<div class="group-expand" *ngFor="let group of teamGroups | keyvalue : unsorted">
1010
<h3>{{ group.key }}</h3>
1111
<div class="team-list">
1212
<ul>

src/app/component/teams/teams.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ export class TeamsComponent implements OnInit {
2727
console.log('teamGroups', this.teamGroups);
2828
});
2929
}
30+
3031
getTeamArray(key: string): string[] {
3132
return this.teamGroups.get(key) || [];
3233
}
34+
35+
unsorted() {
36+
return 0;
37+
}
3338
}

0 commit comments

Comments
 (0)