Skip to content

Commit 369f620

Browse files
Remove profile picker list sorting
1 parent 6a3a446 commit 369f620

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

cmd/auth/logout.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"slices"
87
"strings"
98

109
"github.com/databricks/cli/libs/cmdio"
@@ -221,10 +220,6 @@ func promptForLogoutProfile(ctx context.Context, profiler profile.Profiler) (str
221220
return "", errors.New("no profiles configured. Run 'databricks auth login' to create a profile")
222221
}
223222

224-
slices.SortFunc(allProfiles, func(a, b profile.Profile) int {
225-
return strings.Compare(strings.ToLower(a.Name), strings.ToLower(b.Name))
226-
})
227-
228223
maxNameLen := 0
229224
for _, p := range allProfiles {
230225
maxNameLen = max(maxNameLen, len(p.Name))

0 commit comments

Comments
 (0)