diff --git a/web/ts/data-store/stream-playlist.ts b/web/ts/data-store/stream-playlist.ts index d213bb50c..493744971 100644 --- a/web/ts/data-store/stream-playlist.ts +++ b/web/ts/data-store/stream-playlist.ts @@ -6,10 +6,10 @@ export class StreamPlaylistProvider extends StreamableMapProvider { - e.createdAtDate = new Date(e.createdAt); + e.startDate = new Date(e.start); return e; }) - .sort((a, b) => a.createdAtDate.getTime() - b.createdAtDate.getTime()); + .sort((a, b) => (a.startDate < b.startDate ? -1 : 1)); } } @@ -23,7 +23,7 @@ export type StreamPlaylistEntry = { createdAt: string; // Client Generated - createdAtDate: Date; + startDate: Date; }; const StreamPlaylist = {