aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-03-18 10:33:38 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-18 11:56:35 +0000
commit5f79434e15c8091e3005cc7a5204733fc2df0f8e (patch)
treecd9fed93a3662b205d2534e33ca0c643aa48b74f
parent14eb86de63e7cfeabcde49c680bc87441c21c0cc (diff)
Documentation/example_gallery: Fix example sort order
Sort by name instead of target documentation file, which may contain additional subdirectory components. Task-number: PYSIDE-2207 Change-Id: Ic5eacb4cf92614f5a4fd1c9cf489ccf8100a8ce4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9141f75965d3a7b03f831193ed1f4094aff28574) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tools/example_gallery/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/example_gallery/main.py b/tools/example_gallery/main.py
index 521defe8d..3db57dbf5 100644
--- a/tools/example_gallery/main.py
+++ b/tools/example_gallery/main.py
@@ -501,7 +501,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