repo mirror list: co-locate and simplify sortRows
main·
Commit

sortRows is only used by mirror list, so move it (and its test) out of the generic corecmd.go into repo_mirror.go next to filterByRepo/sortMirrorsDefault. Inline the headerIndex/cellAt helpers and drop the key-permutation micro-opt — a plain stable sort over the row cells is enough for CLI-sized lists.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 01KWY6XMPEG22C7961HMJR6K0B
Checkpoints
Checkpoint 1