summaryrefslogtreecommitdiff
path: root/helpfuncs.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpfuncs.go')
-rw-r--r--helpfuncs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/helpfuncs.go b/helpfuncs.go
index 49069a2..7033f04 100644
--- a/helpfuncs.go
+++ b/helpfuncs.go
@@ -7,6 +7,7 @@ import (
"image"
"os"
"path"
+ "slices"
"strings"
"unicode"
@@ -198,6 +199,7 @@ func listRolesWithUser() []string {
}
// Prepend user role to the beginning of the list
result := append([]string{cfg.UserRole}, filteredRoles...)
+ slices.Sort(result)
return result
}