From 1fc8a831723f831a13defcd381380d130028f831 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Oct 2025 14:09:06 -0500 Subject: was used to debug junk newlines in tables --- repo.SortByAge.go | 12 ++++++++++++ stat.TableLimit.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/repo.SortByAge.go b/repo.SortByAge.go index 458a9a0..9e73eef 100644 --- a/repo.SortByAge.go +++ b/repo.SortByAge.go @@ -26,3 +26,15 @@ func (r sortReposAge) Less(i, j int) bool { return false } func (a sortReposAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] } + +func (x *Repos) SortActual() *Repos { + newx := NewRepos() + + all := x.SortByFullPath() + for all.Scan() { + r := all.Next() + newx.Append(r) + } + + return newx +} diff --git a/stat.TableLimit.go b/stat.TableLimit.go index 8c0b217..258b10f 100644 --- a/stat.TableLimit.go +++ b/stat.TableLimit.go @@ -16,5 +16,5 @@ import ( // formats & prints the table as text to Stdout. a real timesaver! func (t *StatsTable) PrintTableLimit(limit int) { t.MakeTable() - cobol.PrintTableLimit(t.pb, limit) + cobol.PrintTableLimit(t.pb, limit, false) } -- cgit v1.2.3