mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-09-27 19:26:34 -05:00
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user