Glossary alphabetically ordering for all language

Nowadays, the glossary is kept in alphabetical order manually. Here we have two problems:

  1. Eventually, the entry order is wrong ( Glossary: locale order )
  2. The alphabetical order is kept just in English.

I propose using :sorted: option Sphinx. The glossary will always be ordered in all languages. The two problems above will be solved.

Collateral effects:

  1. The two first current entry will change (>>> …… >>>)
  2. Dunder entries will appear before the letter a.

I think the benefits are bigger than the collateral effects. Besides, it is so easy to implement.

12 Likes

I opened an issue: https://github.com/python/cpython/issues/138700

1 Like