diff --git a/uffd/user/templates/user.html b/uffd/user/templates/user.html
index 3458d375178a0385375c6f218277ca5902c0b9fa..7b6401b23d673c0d03457cd9abca5e1d80217988 100644
--- a/uffd/user/templates/user.html
+++ b/uffd/user/templates/user.html
@@ -79,7 +79,7 @@
 						</tr>
 					</thead>
 					<tbody>
-						{% for role in roles %}
+						{% for role in roles|sort(attribute="name") %}
 						<tr id="role-{{ role.id }}">
 							<td>
 								<div class="form-check">