Skip to content

Commit 5ed56c8

Browse files
authored
the region list displayed to users should be sorted (#737)
1 parent 7a81ab0 commit 5ed56c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/lk/agent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
565565
for i, r := range regionOptions {
566566
regionOptions[i] = strings.TrimSpace(r)
567567
}
568+
slices.Sort(regionOptions)
568569

569570
if err := huh.NewSelect[string]().
570571
Title("Select region for agent deployment").

0 commit comments

Comments
 (0)