From ff8b091864cfe535463ecafac00e229b5ca6738a Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 16 May 2026 19:33:34 +0200 Subject: [PATCH] docs: maintainers_include: keep the last entry at the end The last maintainer's entry ("THE REST") is meant to be at the end. Ensure that. While here, use a case-insensitive sort to avoid placing "iSCSI" near the end. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet Message-ID: --- Documentation/sphinx/maintainers_include.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py index b8b7282ebe38..dc9f9e188ffa 100755 --- a/Documentation/sphinx/maintainers_include.py +++ b/Documentation/sphinx/maintainers_include.py @@ -284,7 +284,12 @@ class MaintainersInclude(Include): self.state.document['maintainers_included'] = True - for name, fields in sorted(maint_parser.maint_entries.items()): + # Keep the last entry ("THE REST") in the end + entries = list(maint_parser.maint_entries.keys()) + entries = sorted(entries[:-1], key=str.casefold) + [entries[-1]] + + for name in entries: + fields = maint_parser.maint_entries[name] output += f" * - {name}\n" tag = "-" for field, lines in fields.items():