root project listing: show hidden projects at the end

Makes the zebra striping correct.
This commit is contained in:
Graham Christensen 2021-03-25 18:14:01 -04:00 committed by Graham Christensen
parent 9bb04ed97a
commit a46f655c56

View file

@ -104,7 +104,7 @@ sub deserialize :ActionClass('Deserialize') { }
sub index :Path :Args(0) {
my ($self, $c) = @_;
$c->stash->{template} = 'overview.tt';
$c->stash->{projects} = [$c->model('DB::Projects')->search({}, {order_by => 'name'})];
$c->stash->{projects} = [$c->model('DB::Projects')->search({}, {order_by => ['enabled DESC', 'name']})];
$c->stash->{newsItems} = [$c->model('DB::NewsItems')->search({}, { order_by => ['createtime DESC'], rows => 5 })];
$self->status_ok($c,
entity => $c->stash->{projects}