Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js sort by date

array.sort((a,b) =>  new Date(b.date) - new Date(a.date));
 
PREVIOUS NEXT
Tagged: #js #sort #date
ADD COMMENT
Topic
Name
9+9 =