[PATCH] ALSA: hda: Fix headset detection failure due to unstable sort