diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-18 10:33:38 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-03-18 11:37:51 +0100 |
commit | 9141f75965d3a7b03f831193ed1f4094aff28574 (patch) | |
tree | 229ba1d172f56606e3d4b4bb113df0e443a4a073 | |
parent | b4f495f03679f068aec29a053a34006660b1ab66 (diff) |
Documentation/example_gallery: Fix example sort order
Sort by name instead of target documentation file,
which may contain additional subdirectory components.
Pick-to: 6.6
Task-number: PYSIDE-2207
Change-Id: Ic5eacb4cf92614f5a4fd1c9cf489ccf8100a8ce4
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r-- | tools/example_gallery/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/example_gallery/main.py b/tools/example_gallery/main.py index 095ef4c68..d24601b6e 100644 --- a/tools/example_gallery/main.py +++ b/tools/example_gallery/main.py @@ -588,7 +588,7 @@ def write_example(example_root, pyproject_file, pyside_example=True): def sort_examples(example): result = {} for module in example.keys(): - result[module] = sorted(example.get(module), key=lambda e: e.doc_file) + result[module] = sorted(example.get(module), key=lambda e: e.example) return result |