Skip to content

Commit

Permalink
Update logref.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shysolocup authored Sep 26, 2024
1 parent 4b32de7 commit c81492c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/logs/scripts/logref.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,21 @@ versionnames.forEach((vn, i) => {
let ventry = versions[vn];
let vsubs = ventry.subs;

stuff.unshift(versions[vn].header);
stuff.push(versions[vn].header);

vsubs = vsubs.sort( (a, b) => {
return a.header.localeCompare(b.header);
});

vsubs = (config.reverseSort) ? vsubs.reverse() : vsubs
console.log(vsubs);

vsubs.forEach( (sub) => {
let { header, content } = sub;

stuff.push(header);
content.forEach(c => stuff.push(c));
});

/*v = v.content.sort();
v = (config.reverseSort) ? v.reverse() : v;*/
Expand Down

0 comments on commit c81492c

Please sign in to comment.