Skip to content

Commit 9c91af6

Browse files
committed
build: sort changelog by commit message scope
Previously `a.type - b.type` always returned NaN, which broke sorting
1 parent d50810a commit 9c91af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/templates/changelog.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
continue;
7878
}
7979
80-
scopeCommits.sort((a, b) => a.type - b.type);
80+
scopeCommits.sort((a,b) => a.type > b.type ? 1 : -1);
8181
%>
8282
<tr><td colspan=3><h3><%
8383
if (scope) {

0 commit comments

Comments
 (0)