Keyboard "Add Layout" dialog lists languages in reverse order

In the System Settings app, Keyboard screen, the “Add Layout” dialog for me lists languages in reverse alphabetical order. (Then within a language, the individual layouts are listed in neither alphabetical nor reverse alphabetical order.)

How does the app determine the order of the list?

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel Version: 6.17.5-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3060 Ti