• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Please sort the add-on names in the User Group Permissions

AndyB

Well-known member
#1
Please sort the add-on names in the User Group Permissions.

Example:

Admin CP -> Users -> User Groups -> Administrators

Add-on names are in random order and that makes it difficult to find the add-on you're looking for:

pic001.jpg

By adding ", addon_id" to the following query:

library/XenForo/Model/Permission.php

PHP:
    /**
     * Gets all permission interface groups in order.
     *
     * @return array Format: [interface group id] => interface group info
     */
    public function getAllPermissionInterfaceGroups()
    {
        return $this->fetchAllKeyed('
            SELECT *
            FROM xf_permission_interface_group
            ORDER BY display_order, addon_id
        ', 'interface_group_id');
    }
all add-ons would be sorted by the add-on name.
 
Last edited: