/config/resource: sort resources by name

This commit is contained in:
Alexander A. Klimov 2017-11-23 12:54:18 +01:00
parent 2a4fdd12d7
commit 9b6b00ebca
1 changed files with 4 additions and 1 deletions

View File

@ -310,7 +310,10 @@ class ConfigController extends Controller
public function resourceAction() public function resourceAction()
{ {
$this->assertPermission('config/application/resources'); $this->assertPermission('config/application/resources');
$this->view->resources = Config::app('resources', true); $this->view->resources = Config::app('resources', true)->getConfigObject()
->setKeyColumn('name')
->select()
->order('name');
$this->createApplicationTabs()->activate('resource'); $this->createApplicationTabs()->activate('resource');
} }