From 54399b154ad0afc40e473ff7fa2e72d8ca90c3f7 Mon Sep 17 00:00:00 2001 From: smuddyx Date: Sat, 22 Apr 2023 13:14:16 +0200 Subject: [PATCH] fixing add order of show for adding songs --- src/app/modules/songs/song/song.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/songs/song/song.component.ts b/src/app/modules/songs/song/song.component.ts index 2f526d4..6df56cf 100644 --- a/src/app/modules/songs/song/song.component.ts +++ b/src/app/modules/songs/song/song.component.ts @@ -25,7 +25,7 @@ export class SongComponent implements OnInit { public faEdit = faEdit; public faDelete = faTrash; public faFileCirclePlus = faFileCirclePlus; - public privateShows$ = this.showService.list$().pipe(map(show => show.filter(_ => !_.published))); + public privateShows$ = this.showService.list$().pipe(map(show => show.filter(_ => !_.published).sort((a, b) => b.date.toMillis() - a.date.toMillis()))); public constructor( private activatedRoute: ActivatedRoute,