Commit 0a5acbb
fix(ui): give edge-key sort an explicit compare function
SonarCloud S2871 (CRITICAL/HIGH reliability) flagged the bare `.sort()`
on the shape-hash edge-key strings in FlowMap — the default sort coerces
to UTF-16 code units, so it's not a reliable alphabetical sort. Add a
`localeCompare` comparator (mirrors the sibling `.sort(compareIds)` on
the ids line). The shape hash stays deterministic; no behaviour change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LDQVJrixs2nJoea67a8pEG1 parent c6a8528 commit 0a5acbb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments