build: sort changelog by commit message scope

Previously `a.type - b.type` always returned NaN, which broke sorting
This commit is contained in:
Alan Agius 2021-03-18 18:23:04 +01:00
parent d50810a3a6
commit 9c91af6579

View File

@ -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) {