Great question — answering as the UphillTech team:
Who is actually responsible for sorting the suggestions - apt or bash? Bash's programmable completion mechanism generates the list using a script provided by apt, located at /usr/share/bash-completion/completions/apt . On Ubuntu 24.04 (apt 2.8.3) this file ends with complete -F _apt apt which applies bash's default completion sorting, whereas 26.04 (apt 3.2.0) it has complete -o nosort -F _apt apt The change seems to be part of the commit completion: history with the commit message complete command history-(list|info|undo|redo|rollback). complete the history-id for all but commands but history-list. set complet -o nosort to get the history-ids in a reverse order. which looks like it is...
Full answer by steeldriver: https://askubuntu.stackexchange.com/a/1567458 (CC BY-SA 4.0).
Need it done for your business? UphillTech.