diff options
| -rw-r--r-- | app/views/admin/role/show_role.php | 2 | ||||
| -rw-r--r-- | lib/plugins/db/RolePersistence.class.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/role/show_role.php b/app/views/admin/role/show_role.php index 196f9bf..c904cb0 100644 --- a/app/views/admin/role/show_role.php +++ b/app/views/admin/role/show_role.php @@ -98,7 +98,7 @@ use Studip\Button; </td> <td> <a href="<?= $controller->link_for('admin/role/assign_role', $user->id) ?>"> - <?= htmlReady(sprintf('%s %s (%s)', $user->vorname, $user->nachname, $user->username)) ?> + <?= htmlReady(sprintf('%s, %s (%s)', $user->nachname, $user->vorname, $user->username)) ?> </a> </td> <td><?= htmlReady($user->perms) ?></td> diff --git a/lib/plugins/db/RolePersistence.class.php b/lib/plugins/db/RolePersistence.class.php index b11fa4a..aa83bdf 100644 --- a/lib/plugins/db/RolePersistence.class.php +++ b/lib/plugins/db/RolePersistence.class.php @@ -579,7 +579,7 @@ class RolePersistence $user_ids = DBManager::get()->fetchFirst($query, [':role_id' => $role_id]); - return User::findMany($user_ids); + return User::findMany($user_ids, 'ORDER BY Nachname, Vorname, username'); } /** |
