How to sort array by date property?
blogEntries.sort(
(a, b) =>
a.data.publicationDate.getMilliseconds() -
b.data.publicationDate.getMilliseconds()
)
blogEntries.sort(
(a, b) =>
a.data.publicationDate.getMilliseconds() -
b.data.publicationDate.getMilliseconds()
)