Just subtract the two dates in the sort() callback. const dates = [ new Date('July 20, 2021 20:17:40'), ...
確定! 回上一頁