[-] BO : AdminModule now sort modules by alphabetical order

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11825 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2011-12-28 10:19:36 +00:00
parent ec55488fae
commit 99295113e2
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -1050,6 +1050,15 @@ abstract class ModuleCore
//echo round($current_memory / 1024 / 1024, 2).'Mo<br />';
// @TODO review
function sortModules($a, $b)
{
if ($a->displayName == $b->displayName)
return 0;
return ($a->displayName < $b->displayName) ? -1 : 1;
}
usort($moduleList, "sortModules");
if ($errors)
{
echo '<div class="alert error"><h3>'.Tools::displayError('The following module(s) couldn\'t be loaded').':</h3><ol>';