Skip to content

Fix SortAlphabetically's remote-kill comparator#75

Draft
effron wants to merge 1 commit into
mainfrom
fix-remote-kill-sort
Draft

Fix SortAlphabetically's remote-kill comparator#75
effron wants to merge 1 commit into
mainfrom
fix-remote-kill-sort

Conversation

@effron

@effron effron commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

The two-key comparison (Split < Split && Reason < Reason) is not a strict weak ordering, so remote_kills order in the written schema depended on input order -- with mutually incomparable kills, sort.Slice produces different output for different input orders, causing spurious diffs on schema writes. Standard two-key tiebreak fixes it; test covers the incomparable case.

Found while working on #74.

The two-key comparison (Split < Split && Reason < Reason) is not a strict
weak ordering, so remote_kills order in the written schema depended on
input order — a source of spurious diffs on every schema write.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@effron effron marked this pull request as draft July 15, 2026 19:40
@effron

effron commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

claude did this, making sure it's real before taking out of draft

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.

1 participant