Skip to content

Commit c8c4b9b

Browse files
committed
generate-docs: stable order
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent a042ff2 commit c8c4b9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flow/scripts/generate-variables-docs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
preferred_order = ["synth", "floorplan", "place", "cts", "grt", "route", "final"]
1818
stages = {stage for value in data.values() for stage in value.get("stages", [])}
1919
# convert set of stages to stages in a list in the preferred order, but
20-
# list all stages
21-
stages = [stage for stage in preferred_order if stage in stages] + [
22-
stage for stage in stages if stage not in preferred_order
23-
]
20+
# list all stages and sort the rest for a stable order
21+
stages = [stage for stage in preferred_order if stage in stages] + sorted(
22+
[stage for stage in stages if stage not in preferred_order]
23+
)
2424

2525
markdown_table = ""
2626

0 commit comments

Comments
 (0)