Skip to content

Commit

Permalink
Sort file by file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlGao4 authored Feb 18, 2024
1 parent 177e660 commit 00ed3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-actions-generate-toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
markdown += f"## {catagory}\n\n"
for name in sorted(instruments[catagory].keys()):
markdown += f"- [{name}]({instrument_urls[catagory][name]})\n"
for asset in sorted(instruments[catagory][name].keys()):
for asset in sorted(instruments[catagory][name].keys(), key=lambda x: x.rsplit(".", 1)[1]):
markdown += f" - [{asset}]({instruments[catagory][name][asset]})\n"
markdown += "\n"

Expand Down

0 comments on commit 00ed3fb

Please sign in to comment.