Skip to content

Commit

Permalink
Add reference to nodejs/node#24294
Browse files Browse the repository at this point in the history
  • Loading branch information
gordey4doronin committed May 2, 2021
1 parent 9c36230 commit 1baa884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pull-rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const sortRssItems = (rssItems) => rssItems.sort((a, b) => {
} else {
// In case dates are equal - compare titles.
// This is only required for sort results back-compatibility with Node 8 and Node 10.
// See details here https://github.com/nodejs/node/issues/24294.
// TODO: If switching to Node 12 and above - it's possible to only compare dates.
// E.g. rssItems.sort((a, b) => Date.parse(a.pubDate[0]) - Date.parse(b.pubDate[0]))

Expand Down

0 comments on commit 1baa884

Please sign in to comment.