Skip to content

Instantly share code, notes, and snippets.

@IgorKurkov
Last active February 10, 2018 22:57
Show Gist options
  • Save IgorKurkov/c6608b7d5c626763e01df0209da8906b to your computer and use it in GitHub Desktop.
Save IgorKurkov/c6608b7d5c626763e01df0209da8906b to your computer and use it in GitHub Desktop.

Revisions

  1. IgorKurkov renamed this gist Feb 10, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. IgorKurkov created this gist Feb 10, 2018.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original 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();