Rustdoc: group items by stability, rather than alphabetically #15345
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Rustdoc has grown a lovely new feature whereby index pages with listings of functions and types will display a color next to each item indicating whether it's experimental, unstable, stable, or deprecated. I would like to go one further: group all items according to stability, rather than just having them scattered through an alphabetic list. After grouping by stability, I would like each of the four sections to be ordered as follows:
Within each group, ordering will remain alphabetical.
Reasoning: if I'm a user, I want to prefer stable items, which means that I want to see at a glance what my stable options are. If there are no stable options, then I want to consider unstable options, then experimental options, then deprecated options, in that order. Furthermore, if I'm a library author, then I want my users to consider options in the same order: stable first, then unstable-but-up-and-coming, then deprecated last.
The text was updated successfully, but these errors were encountered: