From e3965db3c7e7f5e3cdbf5d03ac06103c2709c0d8 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 4 Feb 2026 08:26:30 +0300 Subject: Enha: use slices methods --- helpfuncs.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helpfuncs.go') 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 } -- cgit v1.2.3