1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-13 02:43:58 +02:00

Vitamins now sorted alphabetically in build instructions.

This commit is contained in:
Chris Palmer
2019-07-19 10:57:14 +01:00
parent 7b2b239a8b
commit fbc688c81f
2 changed files with 13 additions and 13 deletions

View File

@@ -267,7 +267,7 @@ def views(target, do_assemblies = None):
print("### Vitamins", file = doc_file)
print("|Qty|Description|", file = doc_file)
print("|--:|:----------|", file = doc_file)
for v in vitamins:
for v in sorted(vitamins, key = lambda s: s.split(":")[-1]):
print("|%d|%s|" % (vitamins[v], v.split(":")[1]), file = doc_file)
print("\n", file = doc_file)