Skip to content

Commit efcf718

Browse files
committed
fix: ensure correct ordering within the results
1 parent bf3fa54 commit efcf718

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

CodeEntropy/results/reporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ def _build_grouped_payload(
411411
for g in groups.values():
412412
if g["total"] is None:
413413
comps = sorted(g["components"].values())
414-
g["total"] = float(sum(comps)) if comps else 0.0
414+
g["total"] = (
415+
float(sum(float(x) for x in sorted(comps))) if comps else 0.0
416+
)
415417

416418
payload: dict[str, Any] = {
417419
"args": self._serialize_args(args),

0 commit comments

Comments
 (0)