aboutsummaryrefslogtreecommitdiff
path: root/scripts/reqs2tex.py
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-18 16:52:40 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-18 16:52:40 +0200
commitc37f21e48f17abe9fb6bf1549f680e6f730aed8c (patch)
tree44233683bff95f98dbf9fee908bd8e3a6c8aab09 /scripts/reqs2tex.py
parent6b3fa9ceaf539b1bdcddf6284326a67c127d93a4 (diff)
WIP research
Diffstat (limited to 'scripts/reqs2tex.py')
-rwxr-xr-xscripts/reqs2tex.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/reqs2tex.py b/scripts/reqs2tex.py
index e5f063d..6984466 100755
--- a/scripts/reqs2tex.py
+++ b/scripts/reqs2tex.py
@@ -94,6 +94,9 @@ def convert(data):
# skip deleted requirements (but process for make_id)
reqs = [item for item in reqs if item[KEY.DELETED] == False]
+ # sort by label
+ reqs = sorted(reqs, key=lambda item: item[KEY.LABEL])
+
return reqs
def fmt_aux(data):