update firebase

This commit is contained in:
2021-07-04 20:49:35 +02:00
parent 1605be82a3
commit f720d472c8
6 changed files with 672 additions and 508 deletions

View File

@@ -18,7 +18,7 @@ export class ListComponent {
}
public getPublicShows(songs: Show[]): Show[] {
return songs.filter(_ => _.published);
return songs.filter(_ => _.published).sort((a, b) => (b.date < a.date ? -1 : b.date > a.date ? 1 : 0));
}
public getPrivateSongs(songs: Show[]): Show[] {