Repository: yt-dlp
Issue: Human-friendly language selection in --format-sort
Labels: enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Language selection in --format-sort works, but it references internal numeric identifiers that are not user-friendly (see eg. [this](https://github.com/mpv-player/mpv/issues/8717#issuecomment-1186359552) thread where a user would like --format-sort to prefer the Spanish language, but can't configure yt-dlp to do so). See below an example.

I think it would be nice to have a human-friendly version to allow users to specify one or more preferred languages, eg. `--format-sort hlang:fr`. My personal use case for this is watching the bilingual channel [ARTE](https://www.arte.tv/en/), but in general it is useful for anyone consuming resources with multilingual audio.

I think I can implement it relatively easily, but I would like to gather some feedback before delving into it.

### Provide verbose output that clearly demonstrates the problem

- [x] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [x] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [x] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```
[debug] Command-line config: ['-vU', '--format-sort', 'lang:11101', '-F', 'https://www.arte.tv/en/videos/111843-000-A/arte-reportage/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (source)
[debug] Lazy loading extractors is disabled
[debug] Git HEAD: 0a6918a4a
[debug] Python 3.10.10 (CPython x86_64 64bit) - Linux-6.2.10-arch1-1-x86_64-with-glibc2.37 (OpenSSL 3.0.8 7 Feb 2023, glibc 2.37)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1791 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
yt-dlp is up to date (stable@2023.03.04)
[ArteTV] Extracting URL: https://www.arte.tv/en/videos/111843-000-A/arte-reportage/
[ArteTV] 111843-000-A: Downloading JSON metadata
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[ArteTV] 111843-000-A: Downloading m3u8 information
[debug] Sort order given by user: lang:11101
[debug] Formats sorted by: hasvid, ie_pref, lang:11101(11101.0), quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for 111843-000-A:
ID                             EXT RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC     MORE INFO
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
VA-program_audio_0-VA          mp4 audio only     │                  m3u8  │ audio only        unknown    [de] German (Dubbed) [DE]
VF-program_audio_0-VF          mp4 audio only     │                  m3u8  │ audio only        unknown    [fr] French (Dubbed) [FR]
VO-STE_ANG_-program_audio_0-VO mp4 audio only     │                  m3u8  │ audio only        unknown    [mul] English (Subtitles) [OGsub-ANG]
VF-432                         mp4 384x216     25 │ ~ 77.48MiB  432k m3u8  │ avc1.42e00d  432k video only French (Dubbed) [FR]
VF-839                         mp4 640x360     25 │ ~150.51MiB  840k m3u8  │ avc1.4d401e  840k video only French (Dubbed) [FR]
VF-1364                        mp4 768x432     25 │ ~244.55MiB 1365k m3u8  │ avc1.4d401e 1365k video only French (Dubbed) [FR]
VF-2309                        mp4 1280x720    25 │ ~413.83MiB 2309k m3u8  │ avc1.4d401f 2309k video only French (Dubbed) [FR]
VF-2755                        mp4 1920x1080   25 │ ~493.73MiB 2755k m3u8  │ avc1.4d0028 2755k video only French (Dubbed) [FR]
```