Last active
February 10, 2018 22:57
-
-
Save IgorKurkov/c6608b7d5c626763e01df0209da8906b to your computer and use it in GitHub Desktop.
Revisions
-
IgorKurkov renamed this gist
Feb 10, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
IgorKurkov created this gist
Feb 10, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ Arr.sort((a, b)=> { a = new Date(a.sent).getTime(); b = new Date(b.sent).getTime(); return a > b ? 1 : a < b ? -1 : 0; }) .reverse();