From 5b8d0d87a2dcb830d518be42082aaac948852128 Mon Sep 17 00:00:00 2001 From: sabitertan Date: Tue, 3 Mar 2015 08:46:35 +0200 Subject: [PATCH] Sort modules by name Except for English, any other languages module names not in good order, hard to follow where the module you want. This will fix it --- upload/admin/controller/extension/module.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/upload/admin/controller/extension/module.php b/upload/admin/controller/extension/module.php index 136521d14ec..1250a69cfec 100644 --- a/upload/admin/controller/extension/module.php +++ b/upload/admin/controller/extension/module.php @@ -180,7 +180,12 @@ public function getList() { ); } } - + $names = array(); + foreach ($data['extensions'] as $key => $row) + { + $names[$key] = $row['name']; + } + array_multisort($names, SORT_ASC, $data['extensions']); if (isset($this->request->post['selected'])) { $data['selected'] = (array)$this->request->post['selected']; } else { @@ -209,4 +214,4 @@ protected function validateDelete() { return !$this->error; } -} \ No newline at end of file +}