Skip to content

Commit 51ac5a1

Browse files
committed
Stably sort commits
1 parent ebfdcaf commit 51ac5a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/Gren.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,11 @@ class Gren {
11461146
commits = commits.filter((commit) =>
11471147
branchCommitShas.includes(commit.sha)
11481148
);
1149+
commits.sort(
1150+
(commit1, commit2) =>
1151+
new Date(commit2.commit.committer.date) -
1152+
new Date(commit1.commit.committer.date)
1153+
);
11491154
releaseRange.push(commits);
11501155
}
11511156
loadedCommits('Commits acquired');

0 commit comments

Comments
 (0)