даты сортировки
const sortedActivities = activities.sort((a, b) => b.date - a.date)
Kind Kestrel
const sortedActivities = activities.sort((a, b) => b.date - a.date)