Skip to content

Commit

Permalink
[desk-tool] Sort latest author annotations by timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 5219f86 commit f275565
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ export function collectLatestAuthorAnnotations(diff: Diff): AnnotationDetails[]
return true
})

return Array.from(authorMap.values())
return Array.from(authorMap.values()).sort(
(a, b) => Date.parse(b.timestamp) - Date.parse(a.timestamp)
)
}

0 comments on commit f275565

Please sign in to comment.