Fix sort order

This commit is contained in:
Ajay 2023-06-12 11:51:17 -04:00
parent bbb7102e37
commit 9f7fa53b14

View file

@ -176,8 +176,8 @@ async function filterAndSortBranding(videoID: VideoID, dbTitles: TitleDBResult[]
.sort((a, b) => +b.locked - +a.locked) as TitleResult[]; .sort((a, b) => +b.locked - +a.locked) as TitleResult[];
const thumbnails = shuffleArray(dbThumbnails.filter(await shouldKeepThumbnails)) const thumbnails = shuffleArray(dbThumbnails.filter(await shouldKeepThumbnails))
.sort((a, b) => b.votes - a.votes)
.sort((a, b) => +a.original - +b.original) .sort((a, b) => +a.original - +b.original)
.sort((a, b) => b.votes - a.votes)
.sort((a, b) => b.locked - a.locked) .sort((a, b) => b.locked - a.locked)
.map((r) => ({ .map((r) => ({
timestamp: r.timestamp, timestamp: r.timestamp,