Fix sorting
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Trenton Zimmer
2025-01-03 20:03:52 -05:00
parent ad8981598d
commit 0786702a95

View File

@@ -331,7 +331,9 @@ async function generateTimeline(myProfile) {
}
// Sort plays by timestamp
return plays.sort((a, b) => a.timestamp - b.timestamp);
return plays.sort(
(a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()
);
}
</script>