diff --git a/manager/actions/resources.static.php b/manager/actions/resources.static.php index 71a6d85e75..136b14157d 100644 --- a/manager/actions/resources.static.php +++ b/manager/actions/resources.static.php @@ -201,7 +201,7 @@ function createResourceList($resourceTable,$action,$nameField = 'name') { $rs = $modx->db->select( "{$pluginsql} {$nameField} as name, {$v['table']}.id, description, locked, categories.category, categories.id as catid", $modx->getFullTableName($v['table'])." AS {$v['table']} - LEFT JOIN ".$modx->getFullTableName('categories')." AS categories ON {$v['table']}.category = categories.id", + RIGHT JOIN ".$modx->getFullTableName('categories')." AS categories ON {$v['table']}.category = categories.id", "", "5,1" ); @@ -218,7 +218,9 @@ function createResourceList($resourceTable,$action,$nameField = 'name') { $name[$n] = $v['name']; } - array_multisort($category, SORT_ASC, $name, SORT_ASC, $finalInfo); + $category_lowercase = array_map('strtolower', $category); + $name_lowercase = array_map('strtolower', $name); + array_multisort($category_lowercase, SORT_ASC, SORT_STRING, $name_lowercase, SORT_ASC, SORT_STRING, $finalInfo); echo '