how to put all my dates in one array in javascript code example
Example: javascript order array by date
const sortedActivities = activities.sort((a, b) => b.date - a.date)
const sortedActivities = activities.sort((a, b) => b.date - a.date)