Children are now sorted
This commit is contained in:
parent
cf064d379d
commit
5a70c0ae75
|
@ -18,6 +18,7 @@ export class Type {
|
||||||
addChild(type: Type) {
|
addChild(type: Type) {
|
||||||
type.parent = this;
|
type.parent = this;
|
||||||
this.children.push(type);
|
this.children.push(type);
|
||||||
|
this.children.sort((left, right) => left.name.localeCompare(right.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue