fixing add order of show for adding songs

This commit is contained in:
2023-04-22 13:14:16 +02:00
parent f46c5ce47c
commit 54399b154a

View File

@@ -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,