summaryrefslogtreecommitdiff
path: root/repo.SortByAge.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.SortByAge.go')
-rw-r--r--repo.SortByAge.go12
1 files changed, 12 insertions, 0 deletions
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
+}