diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 19:32:59 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 19:32:59 +0300 |
| commit | 270c226d8443c779374ee46631c4f385126b9a81 (patch) | |
| tree | 9a1d613d5ea5d6227103cbf71283e9149420a22d /docs | |
| parent | d585f83e1c3757e1a1edf2802abfa6171b5234f3 (diff) | |
extract generic sortedWithState helper to deduplicate tab sort logic
Four near-identical sorted-rows functions (sortedFileSnapshots,
sortedDirSnapshots, sortedSyscallSnapshots, sortedProcessTableRows)
each repeated the same guard-clone-sort-tiebreak-apply pattern.
Replace them with a single generic sortedWithState[T,K] in sort.go
that accepts per-tab byKey and tiebreak comparators as parameters.
Remove now-unused slices imports from syscalls.go and processes.go.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
