javascript sort on objects date

51

javascript order array by date -

const sortedActivities = activities.sort((a, b) => b.date - a.date)

Comments

Submit
0 Comments