Commit 764ce00
fix: NIP-01 compliance - add deterministic event ordering by event_id
For events with the same created_at timestamp, add secondary sort by event_id
in ascending order to ensure deterministic ordering as specified by NIP-01.
Fixes #477 - non-deterministic event ordering in findByFilters
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 7f56d4a commit 764ce00
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
0 commit comments