Children are now sorted

This commit is contained in:
Luca Frosini 2019-10-14 15:56:35 +02:00
parent cf064d379d
commit 5a70c0ae75
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export class Type {
addChild(type: Type) {
type.parent = this;
this.children.push(type);
this.children.sort((left, right) => left.name.localeCompare(right.name));
}
}