@ -26,7 +26,7 @@ sub instantiate_plugins {
push @instances, $inst;
}
return @instances;
return sort {$a->priority > $b->priority} @instances;
no Moose;
@ -13,6 +13,12 @@ has 'type' => (
default => 'dashboard_widgets',
);
has 'priority' => (
is => 'ro',
isa => 'Int',
default => 11,
around handle => sub {
my ($foo, $self, $c) = @_;
default => 12,
default => 10,
default => 1,
default => 100,