summaryrefslogtreecommitdiff
path: root/helpfuncs.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-04 08:26:30 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-04 08:26:30 +0300
commite3965db3c7e7f5e3cdbf5d03ac06103c2709c0d8 (patch)
tree3f8efd23b4f8686fb1e989531b705af05d65fe19 /helpfuncs.go
parent654d6a47ec2d991277e87ca5b2144076eb9f7458 (diff)
Enha: use slices methods
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
}