Skip to content

Commit

Permalink
improve readability of --help ast (#3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl authored Oct 9, 2019
1 parent a0d4b64 commit b18f717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function describe_ast() {
if (ctor.SUBCLASSES.length > 0) {
out.space();
out.with_block(function() {
ctor.SUBCLASSES.forEach(function(ctor, i) {
ctor.SUBCLASSES.sort(function(a, b) {
return a.TYPE < b.TYPE ? -1 : 1;
}).forEach(function(ctor, i) {
out.indent();
doitem(ctor);
out.newline();
Expand Down

0 comments on commit b18f717

Please sign in to comment.