Skip to content

Commit

Permalink
Sort modules by name
Browse files Browse the repository at this point in the history
Except for English, any other languages module names not in good order, hard to follow where the module you want. This will fix it
  • Loading branch information
sabitertan committed Mar 3, 2015
1 parent f037fc8 commit 5b8d0d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions upload/admin/controller/extension/module.php
Expand Up @@ -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 {
Expand Down Expand Up @@ -209,4 +214,4 @@ protected function validateDelete() {

return !$this->error;
}
}
}

0 comments on commit 5b8d0d8

Please sign in to comment.