Skip to content

Commit

Permalink
(station) Sort by station-id in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Sep 3, 2024
1 parent dd4cff4 commit 7bb2eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion station/lib/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def gen_docs(string_manager, metastations):
cat_name = cat_name.split("-")[-1].strip()
cat_name = remove_control_letters(cat_name)
print(f"## {cat_name}", file=f)
for layout in subsections[sub]:
for layout in sorted(subsections[sub], key=lambda x: x.station_id):
img = layout.graphics(4, 32, remap=get_1cc_remap(CompanyColour.BLUE)).crop().to_pil_image()
if "station_id" in dir(layout):
idstr = f"{layout.station_id:04X}"
Expand Down

0 comments on commit 7bb2eda

Please sign in to comment.