summaryrefslogtreecommitdiff
path: root/internal/statsengine
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 19:32:59 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 19:32:59 +0300
commit270c226d8443c779374ee46631c4f385126b9a81 (patch)
tree9a1d613d5ea5d6227103cbf71283e9149420a22d /internal/statsengine
parentd585f83e1c3757e1a1edf2802abfa6171b5234f3 (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 'internal/statsengine')
0 files changed, 0 insertions, 0 deletions