mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 10:11:50 +08:00
build: sort changelog by commit message scope
Previously `a.type - b.type` always returned NaN, which broke sorting
This commit is contained in:
parent
d50810a3a6
commit
9c91af6579
@ -77,7 +77,7 @@
|
||||
continue;
|
||||
}
|
||||
|
||||
scopeCommits.sort((a, b) => a.type - b.type);
|
||||
scopeCommits.sort((a,b) => a.type > b.type ? 1 : -1);
|
||||
%>
|
||||
<tr><td colspan=3><h3><%
|
||||
if (scope) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user