sortowanie według daty
array.sort((a,b) => new Date(b.date) - new Date(a.date));
Jealous Jellyfish
array.sort((a,b) => new Date(b.date) - new Date(a.date));
const sortedActivities = activities.sort((a, b) => b.date - a.date)