summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-23 18:54:25 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-25 22:47:12 -0700
commit9a31f282ae39fa4be34cab5dec3474bb74b18c94 (patch)
tree9afba2a09c72e6b2feed9e915dfa2253075bf8c0 /build-aux
parenta8c2f255d43b81821b1237238e742eab82b4ad44 (diff)
stack.c.gen: Sort rows
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/stack.c.gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen
index 41fe9c8..9f2d60f 100755
--- a/build-aux/stack.c.gen
+++ b/build-aux/stack.c.gen
@@ -304,7 +304,7 @@ def analyze(
# Print.
print("= " + grp_name + " " + sep1[len(grp_name) + 3 :])
- for name, num in rows.items():
+ for name, num in sorted(rows.items()):
print(f"{name.ljust(namelen)} {str(num).rjust(numlen)}")
print(sep2)
print(f"{'Total'.ljust(namelen)} {str(nsum).rjust(numlen)}")