Browse Source

Flattened containers are sorted by area

tags/v1.0.0
Fen Dweller 6 years ago
parent
commit
29009537cf
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      recursive-macro.js

+ 2
- 0
recursive-macro.js View File

@@ -501,6 +501,8 @@ function flatten(thing) {
list.push(obj);
});

list.sort(function(x,y) { return areas[x.name] < areas[y.name] })

return new Container(list);
}



Loading…
Cancel
Save