Skip to content

Commit 40eba80

Browse files
committed
Sort api key names
1 parent c8e720c commit 40eba80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Sources/HostApp/AccountSettings/APIKeyManagement/APIKeyManangement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct APIKeyManagement: ReducerProtocol {
5151
case .refreshAvailableAPIKeyNames:
5252
do {
5353
let pairs = try keychain.getAll()
54-
state.availableAPIKeyNames = Array(pairs.keys)
54+
state.availableAPIKeyNames = Array(pairs.keys).sorted()
5555
} catch {
5656
toast(error.localizedDescription, .error)
5757
}

0 commit comments

Comments
 (0)