order blocks

This commit is contained in:
Simon Vieille 2024-05-13 13:56:57 +02:00
parent 150f3afd6a
commit 51acd82432

View file

@ -15,6 +15,8 @@ class BuilderBlockContainer
public function getWidgets(): array
{
usort($this->widgets, fn(BuilderBlock $a, BuilderBlock $b) => $a->getOrder() <=> $b->getOrder());
return $this->widgets;
}