stil sort on extension slot

This commit is contained in:
Niels Lyngsø
2023-03-30 09:11:54 +02:00
parent eefae37194
commit ea21ee1bfe

View File

@@ -97,8 +97,7 @@ export class UmbExtensionSlotElement extends UmbLitElement {
// sort:
// TODO: Make sure its right to have highest last?
// should not sort here, its done by registry:
//this._extensions.sort((a, b) => a.weight - b.weight);
this._extensions.sort((a, b) => b.weight - a.weight);
} else {
// Remove cause we could not get the component, so we will get rid of this.
//this._extensions.splice(this._extensions.indexOf(extensionObject), 1);