Skip to content

Commit 7320421

Browse files
committed
fix: sort audio devices by name length in getAudioDevices method
1 parent c5ad342 commit 7320421

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

VolumeGrid/Audio/AudioDeviceManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ final class AudioDeviceManager: Sendable {
238238
"'\(device.name)' (ID: \(device.id), Type: \(transportType), Audio: \(supportsAudio))"
239239
)
240240
return supportsAudio && isNotVirtual
241-
}
241+
}.sorted { $0.name.count < $1.name.count }
242242
}
243243

244244
nonisolated func getDeviceName(_ deviceID: AudioDeviceID) -> String? {

0 commit comments

Comments
 (0)