From 9b6b00ebcac91194197525b85762b1f3d16db2ec Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 23 Nov 2017 12:54:18 +0100 Subject: [PATCH] /config/resource: sort resources by name --- application/controllers/ConfigController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php index fe25e7ca3..6ab8d2062 100644 --- a/application/controllers/ConfigController.php +++ b/application/controllers/ConfigController.php @@ -310,7 +310,10 @@ class ConfigController extends Controller public function resourceAction() { $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'); }