We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830b431 commit 99035e0Copy full SHA for 99035e0
cmd/thv/app/client.go
@@ -3,6 +3,7 @@ package app
3
import (
4
"context"
5
"fmt"
6
+ "sort"
7
8
"github.com/spf13/cobra"
9
@@ -136,6 +137,11 @@ func clientSetupCmdFunc(cmd *cobra.Command, _ []string) error {
136
137
fmt.Println("No new clients found.")
138
return nil
139
}
140
+
141
+ // Sort clients alphabetically by ClientType
142
+ sort.Slice(availableClients, func(i, j int) bool {
143
+ return availableClients[i].ClientType < availableClients[j].ClientType
144
+ })
145
// Get available groups for the UI
146
groupManager, err := groups.NewManager()
147
if err != nil {
0 commit comments