Skip to content

#939: sort award rows by their group totals - #955

Merged
yegor256 merged 3 commits into
zerocracy:masterfrom
gemshrine:939
Oct 12, 2026
Merged

yegor256 merged 3 commits into
zerocracy:masterfrom
gemshrine:939

Conversation

@gemshrine

Copy link
Copy Markdown
Contributor

The awards table groups facts by programmer but sorted each row using only the group-leading fact's award. A programmer with several awards could therefore appear below someone whose total was smaller.

The sort key now sums award values across current-group(), matching the total shown in the Run column. The regression case gives one programmer awards of 1 and 100 and another an award of 50, then checks the row order.

Checks: TestAwards#test_sorts_programmers_by_their_total_awards and the repository's Ruby/XSLT CI suite.

Closes #939

@gemshrine

Copy link
Copy Markdown
Contributor Author

@yegor256 Could you review this CI fix for #939?

@yegor256
yegor256 merged commit 5179b1e into zerocracy:master Oct 12, 2026
16 checks passed

Copy link
Copy Markdown
Member

@gemshrine thanks for the fix, merged.


Generated by Claude Code

@0crat

0crat commented Oct 12, 2026

Copy link
Copy Markdown

@gemshrine Thanks for your contribution! 🎉 You've earned +20 points (+24 base, -4 for a smaller hits-of-code count of 20). Keep up the momentum—quality over speed always wins! Your running score is now +6738, and don't forget to check your Zerocracy account for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Awards table incorrectly sorts programmers by first award instead of total award amount

3 participants