From 7a90613c91fa5c06b6fbe5a7a6e48fbba722877d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 08:45:42 -0600 Subject: [PATCH] sort was reversed? --- currentVersions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currentVersions.go b/currentVersions.go index 4fc7814..d0a9c3f 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -231,7 +231,7 @@ func (a GitTagAge) Len() int { return len(a) } // sorts in ? order func (a GitTagAge) Less(i, j int) bool { - if time.Since(a[i].Authordate.AsTime()) > time.Since(a[j].Authordate.AsTime()) { + if time.Since(a[i].Authordate.AsTime()) < time.Since(a[j].Authordate.AsTime()) { return true } return false