summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2025-05-15 12:22:22 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2025-05-15 14:32:54 +0200
commitda6a29bd0579553ddf6e569ab690bca75483af1f (patch)
tree0de4bd2f6ef83603f4318f52b510f1c7fc8923dc /doc
parent37ecbd23a81d72f5e4fc17e9c33ca1b8ff7d9f1f (diff)
downloadjustbuild-da6a29bd0579553ddf6e569ab690bca75483af1f.tar.gz
Invocation server: lexicographically sort filter keys
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/invocations-http-server/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py
index 30f9c6d1..15f72d2d 100755
--- a/doc/invocations-http-server/server.py
+++ b/doc/invocations-http-server/server.py
@@ -205,14 +205,14 @@ class InvocationServer:
break
def convert_filters(filters):
- return [{
+ return sorted([{
"key": key,
"key_hex": key.encode().hex(),
"values": sorted([{
"value": v,
"value_hex": v.encode().hex(),
} for v in values], key=lambda x: x["value"])
- } for key, values in filters.items() if len(values) > 1]
+ } for key, values in filters.items() if len(values) > 1], key=lambda x: x["key"])
return self.render("invocations.html",
{"full_invocations": full_invocations,
"full_invocations_count": full_invocations_count,